Hi !
I'm trying to create a reversi clone thanks to the tutorial http://en.doc.boardgamearena.com/Tutorial_reversi and I 've already met a problem at the very beginning.
I'm unable to have all 64 red squares.
There's only the last one bottom right
It seems "$this->page->insert_block( "square", array(..." only works once at the end of the two loops when $x & $y are 8.
when I look at the source code, I only have
<div id="board">
<!-- BEGIN square -->
<div id="square_8_8" class="square" style="left: 464px; top: 458px;"></div>
<!-- END square -->
</div>
I suppose i should have 64 occurences.
Can someone help me ? Thanks a lot
I'm trying to create a reversi clone thanks to the tutorial http://en.doc.boardgamearena.com/Tutorial_reversi and I 've already met a problem at the very beginning.
I'm unable to have all 64 red squares.
There's only the last one bottom right
It seems "$this->page->insert_block( "square", array(..." only works once at the end of the two loops when $x & $y are 8.
when I look at the source code, I only have
<div id="board">
<!-- BEGIN square -->
<div id="square_8_8" class="square" style="left: 464px; top: 458px;"></div>
<!-- END square -->
</div>
I suppose i should have 64 occurences.
Can someone help me ? Thanks a lot