Expanded move_t type with QUIT and added MOVECOUNT

This commit is contained in:
AnnaSnoeijs 2025-06-06 21:31:59 +02:00
parent 7bbd877fb5
commit 2d11458586
4 changed files with 16 additions and 3 deletions

View file

@ -269,6 +269,7 @@ int askColumn(
break;
}
break;
default:
// Do nothing
}
}
@ -286,6 +287,8 @@ int askColumn(
addstr( " put the piece? " );
case POP:
addstr( " pop a piece? " );
default:
addstr( " Undefined move a thingy? " );
}
clrtoeol();
refresh();
@ -307,6 +310,8 @@ int askColumn(
if( board.height [ column ] != 0 )
return column;
else addstr( "Pls enter a column that ain't empty" );
default:
return column;
}
else addstr( "Pls enter a column that exists" );
}