Skip to content
Hubert Taler edited this page Apr 12, 2017 · 1 revision

Welcome to the HelloWarsCore wiki!

Making game logic pluggable

we can make game logic pluggable by making a general interface to implement:

  • IsMoveValid (getting move and current board, returning bool)
  • MakeMove (getting move, current board, returning board as it appears after move)
  • IsWinningMove?

Arena Runner:

  • asks arena server for current board
  • asks contender for next move
  • loads game logic plugin, asks if move is valid
  • if so, retrieves new board from plugin
  • updates arena server with new board after move
  • repeat
Clone this wiki locally