We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8595c commit 8fb82a3Copy full SHA for 8fb82a3
games/connect4.p6
@@ -1,12 +1,12 @@
1
+use v6;
2
+
3
# pre-declare types
4
class Game { ... };
5
class Move { ... };
6
7
class Player {
8
has Str $.token;
9
has Str $.highlighter_token;
- #method token { ... }
- #method highlighter_token { ... }
10
11
method get_move( Game $game ) { ... };
12
}
@@ -26,7 +26,7 @@ class HumanPlayer is Player {
26
return $move;
27
28
else {
29
- say "move must be a legal (not full) column number"
+ say "move must be a legal (not full) column number";
30
31
32
@@ -276,3 +276,5 @@ class Move {
276
277
my Game $game.=new( player_types => ( "H", 2 ) );
278
$game.play_game;
279
280
+# vim: expandtab shiftwidth=4 ft=perl6
0 commit comments