Skip to content

Instantly share code, notes, and snippets.

@shunfunaki
Last active August 29, 2015 14:18
Show Gist options
  • Save shunfunaki/a0a090286a775d549516 to your computer and use it in GitHub Desktop.
Save shunfunaki/a0a090286a775d549516 to your computer and use it in GitHub Desktop.
クラス設計入門:すごろくゲーム(Java)

課題

次のソースコードが動作するよう、すごろくゲームを開発せよ。

public class Main {
    public static void main(String[] args) {

        Game game = new Game();
        game.setBoard(new Board("data/board.csv"));
        game.addPlayer(new Player("Taro"));
        game.addPlayer(new Player("Jiro"));
        game.setDice(new Dice());
        game.start();

    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment