Cleanup and meta updates
authorJBM <jbm@codingame.com>
Sun, 24 May 2020 15:51:50 +0000 (17:51 +0200)
committerJBM <jbm@codingame.com>
Wed, 27 May 2020 14:53:54 +0000 (16:53 +0200)
PLAN.org
src/main/java/com/codingame/game/Referee.java
src/main/resources/view/assets/avatar_frame.xcf [new file with mode: 0644]

index 8872d2f..a73572d 100644 (file)
--- a/PLAN.org
+++ b/PLAN.org
@@ -5,12 +5,15 @@
 * DONE easter egg for YannT
 * DONE messages
 * TODO referee cleanup
+
+That one's probably never going to be DONE ^^'
+
 * DONE left win bias bug
 * DONE upgrade deps
 * DONE Timings
 * TODO Protocol
 * DONE fenceposts
-* Quotes
+* Quotes to include
     Trolls, it is said, were bred by Melkor because he desired a race as powerful as the giant Ents, the Tree-herds.
         David Day in Tolkien : The Illustrated Encyclopaedia (1993), p. 226
 
index b678534..979e283 100644 (file)
@@ -30,16 +30,16 @@ public class Referee extends AbstractReferee {
         gameManager.getPlayer(0).model = model.p0;
         gameManager.getPlayer(1).model = model.p1;
 
-        for (Player p : gameManager.getPlayers()) {
-            p.sendInputLine(String.format("%d %d", model.roadLength, model.initialStones));
+        for (Player p: gameManager.getPlayers()) {
+            p.sendInputLine(String.format("%d %d",
+                                          model.roadLength,
+                                          model.initialStones));
         }
 
         view.init(model);
-
         gameManager.getPlayer(0).view = view.p0;
         gameManager.getPlayer(1).view = view.p1;
-
-        gameManager.setFrameDuration(2000); // XXX
+        gameManager.setFrameDuration(2000);
     }
 
     @Override
@@ -56,10 +56,10 @@ public class Referee extends AbstractReferee {
         for (Player player : gameManager.getActivePlayers()) {
             Model.Player p = player.model;
             {
-                int trollDistance = p.getTrollDistance();
-                int stones = p.getStones();
-                int oppStones = p.getOppStones();
-                player.sendInputLine(String.format("%d %d %d", trollDistance, stones, oppStones));
+                player.sendInputLine(String.format("%d %d %d",
+                                                   p.getTrollDistance(),
+                                                   p.getStones(),
+                                                   p.getOppStones()));
             }
             player.execute();
         }
diff --git a/src/main/resources/view/assets/avatar_frame.xcf b/src/main/resources/view/assets/avatar_frame.xcf
new file mode 100644 (file)
index 0000000..a4f839c
Binary files /dev/null and b/src/main/resources/view/assets/avatar_frame.xcf differ