Removed ONLYPUT
This commit is contained in:
parent
4f25f66495
commit
89712fc9dc
8 changed files with 25 additions and 53 deletions
|
|
@ -59,14 +59,9 @@ int main(){
|
|||
.win1 = {0},
|
||||
};
|
||||
for(;; playboard.player = !playboard.player ){
|
||||
#ifndef ONLYPUT
|
||||
move_t move = askMove();
|
||||
int column = askColumn( playboard, move );
|
||||
playMove( &playboard, move, column );
|
||||
#else /* ONLYPUT */
|
||||
int column = askColumn( playboard );
|
||||
playMove( &playboard, column );
|
||||
#endif /* ONLYPUT */
|
||||
calcWins( &wins, playboard );
|
||||
updateBoard( wins, playboard, column );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue