Removed ONLYPUT

This commit is contained in:
AnnaSnoeijs 2025-06-06 21:31:59 +02:00
parent 4f25f66495
commit 89712fc9dc
8 changed files with 25 additions and 53 deletions

View file

@ -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 );
}