d-reversi 0.0.2

A minimal D application.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

D-Reversi

Build Status codecov Dub version

D language implementaion of Reversi

You can play it by $ dub

$ dub
Running ./d-reversi 
     0  1  2  3  4  5  6  7
  0[ ][ ][ ][ ][ ][ ][ ][ ]
  1[ ][ ][ ][ ][ ][ ][ ][ ]
  2[ ][ ][ ][ ][ ][ ][ ][ ]
  3[ ][ ][ ][x][o][ ][ ][ ]
  4[ ][ ][ ][o][x][ ][ ][ ]
  5[ ][ ][ ][ ][ ][ ][ ][ ]
  6[ ][ ][ ][ ][ ][ ][ ][ ]
  7[ ][ ][ ][ ][ ][ ][ ][ ]

turn: black(x). stat: [empty:60, white:2, black:2]
>>> input '{row} {col}\n'
1 1
>>> Error: invalid action. retry.
4 2
     0  1  2  3  4  5  6  7
  0[ ][ ][ ][ ][ ][ ][ ][ ]
  1[ ][ ][ ][ ][ ][ ][ ][ ]
  2[ ][ ][ ][ ][ ][ ][ ][ ]
  3[ ][ ][ ][x][o][ ][ ][ ]
  4[ ][ ][x][x][x][ ][ ][ ]
  5[ ][ ][ ][ ][ ][ ][ ][ ]
  6[ ][ ][ ][ ][ ][ ][ ][ ]
  7[ ][ ][ ][ ][ ][ ][ ][ ]
turn: white(o). stat: [empty:59, white:1, black:4]
>>> input '{row} {col}\n'
^C
Authors:
  • karita
Dependencies:
mir-algorithm
Versions:
0.0.2 2018-Jul-01
0.0.1 2018-Jul-01
~master 2018-Jul-01
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.3
Short URL:
d-reversi.dub.pm