Validate with enter (not space)
This commit is contained in:
parent
9c47a74bc8
commit
83df11530c
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ void draw_ttt(WINDOW * w, s_tictactoe * u){
|
|||
}
|
||||
}
|
||||
|
||||
void set_next_player_move(s_move * m,p_view v)
|
||||
void set_next_player_move(s_move * m, p_view v)
|
||||
{
|
||||
char * s="Player to play:%c";
|
||||
int in_x = 3, out_x = 3;
|
||||
|
@ -162,7 +162,7 @@ void set_next_player_move(s_move * m,p_view v)
|
|||
if ( out_y < 6 ) { out_y+=2; }
|
||||
}
|
||||
break;
|
||||
case ' ':
|
||||
case '\n':
|
||||
if ( v->p_uttt->inception_level == 1 ) {
|
||||
m->outer_position = coord_to_elocation( out_y, out_x);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue