first draft (HAS BUGS, DOES NOT WORK)
This commit is contained in:
+5
-1
@@ -1,7 +1,9 @@
|
||||
// a chess implementation in pure C :)
|
||||
|
||||
#include "chess.h"
|
||||
#include "render.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/**
|
||||
* steps to victory:
|
||||
@@ -27,7 +29,7 @@ int main() {
|
||||
|
||||
// algo begin
|
||||
|
||||
init_board(&board);
|
||||
init_board(board);
|
||||
|
||||
show_help();
|
||||
|
||||
@@ -36,6 +38,8 @@ int main() {
|
||||
|
||||
select_player(&player, round_count);
|
||||
|
||||
show_board(board, player);
|
||||
|
||||
get_move(&move);
|
||||
|
||||
end_condition = perform_move(&board, player, &captured, move);
|
||||
|
||||
Reference in New Issue
Block a user