Author: simonetripodi
Date: Sun Mar 25 19:36:06 2012
New Revision: 1305101
URL: http://svn.apache.org/viewvc?rev=1305101&view=rev
Log:
started defining the `elo` package for the Elo Rating System
Added:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
(with props)
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
(with props)
Added:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java?rev=1305101&view=auto
==============================================================================
---
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
(added)
+++
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
Sun Mar 25 19:36:06 2012
@@ -0,0 +1,32 @@
+package org.apache.commons.graph.elo;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * The possible results of a game.
+ */
+public enum GameResult
+{
+
+ WIN,
+ LOSE,
+ DRAW;
+
+}
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/GameResult.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java?rev=1305101&view=auto
==============================================================================
---
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
(added)
+++
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
Sun Mar 25 19:36:06 2012
@@ -0,0 +1,24 @@
+/**
+ * The {@code elo} package contains a Java implementation of the
+ * <a href="http://en.wikipedia.org/wiki/Elo_rating_system.">Elo Rating
System</a>
+ */
+package org.apache.commons.graph.elo;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/elo/package-info.java
------------------------------------------------------------------------------
svn:mime-type = text/plain