add Game.currentState to indicate whether games are won/lost
This commit is contained in:
@@ -8,9 +8,6 @@ class Player {
|
||||
move_by(amount) {
|
||||
this.position += amount;
|
||||
//todo: move by 1 only on the last 3 fields
|
||||
if (this.position >= 16) {
|
||||
// todo: win
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user