Add a test for i in set_tictactoe_winner()
This commit is contained in:
parent
943e63ee45
commit
c1a0446402
3 changed files with 30 additions and 30 deletions
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
set(CMAKE_C_FLAGS "-std=c99 -g -Wall")
|
set(CMAKE_C_FLAGS "-std=c99 -g -Wall")
|
||||||
set(CMAKE_INSTALL_PREFIX ".")
|
set(CMAKE_INSTALL_PREFIX ".")
|
||||||
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
||||||
project(utictactoe)
|
project(utictactoe)
|
||||||
add_executable(${PROJECT_NAME} src/utictactoe.c src/model.c)
|
add_executable(${PROJECT_NAME} src/utictactoe.c src/model.c)
|
||||||
|
|
|
@ -2,6 +2,5 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
set(CMAKE_C_FLAGS "-std=c99 -g -Wall")
|
set(CMAKE_C_FLAGS "-std=c99 -g -Wall")
|
||||||
set(CMAKE_INSTALL_PREFIX ".")
|
set(CMAKE_INSTALL_PREFIX ".")
|
||||||
include_directories(../include)
|
include_directories(../include)
|
||||||
|
|
||||||
project(utictactoe)
|
project(utictactoe)
|
||||||
add_executable(${PROJECT_NAME} utictactoe.c model.c)
|
add_executable(${PROJECT_NAME} utictactoe.c model.c)
|
||||||
|
|
|
@ -198,7 +198,7 @@ void set_tictactoe_winner(s_tictactoe *p_ttt){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* second diagonal, from the end of line
|
* second diagonal, from the end of line
|
||||||
|
@ -233,6 +233,7 @@ void set_tictactoe_winner(s_tictactoe *p_ttt){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* line
|
* line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue