mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
finish: multiplayer layer
This commit is contained in:
19
game/src/main/java/org/toop/game/othello/Othello.java
Normal file
19
game/src/main/java/org/toop/game/othello/Othello.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package org.toop.game.othello;
|
||||
|
||||
import org.toop.game.TurnBasedGame;
|
||||
|
||||
public final class Othello extends TurnBasedGame {
|
||||
Othello() {
|
||||
super(8, 8, 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Move[] getLegalMoves() {
|
||||
return new Move[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public State play(Move move) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
11
game/src/main/java/org/toop/game/othello/OthelloAI.java
Normal file
11
game/src/main/java/org/toop/game/othello/OthelloAI.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package org.toop.game.othello;
|
||||
|
||||
import org.toop.game.AI;
|
||||
import org.toop.game.Game;
|
||||
|
||||
public final class OthelloAI extends AI<Othello> {
|
||||
@Override
|
||||
public Game.Move findBestMove(Othello game, int depth) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user