Expanded move_t type with QUIT and added MOVECOUNT
This commit is contained in:
parent
7bbd877fb5
commit
2d11458586
4 changed files with 16 additions and 3 deletions
|
|
@ -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" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue