Skip to content

Instantly share code, notes, and snippets.

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

課題

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

<?php
$game = Game::getInstance();
$game->setBoard(new Board('data/board.csv'));
$game->addPlayer(new Player('Taro'));
$game->addPlayer(new Player('Jiro'));
$game->setDice(new Dice());
$geme->start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment