diff options
| author | tslil <tslil@posteo.de> | 2020-12-27 23:21:44 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | f706a6a0546400cb6a1925f25dc010ffce2afd49 (patch) | |
| tree | c8f278a1e65ed71547266ab90c32d0e6bfa058e6 /src/ctaklm.c | |
| parent | 49d4f7867927a47d9a9b598236f76b509cc9b7b5 (diff) | |
Changed representation, implemented most basic things for tak.h
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index 8330012..bbf815c 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -1,8 +1,18 @@ #include <stdlib.h> #include <stdio.h> + #include <tak.h> int main(int argc, char **argv) { - cell_t x = CELL_EMPTY_VALUE; - printf("Test %d\n",x); + init_game(); + + enum ACTION_RESULT res = try_place(0, 0x0001, STONE_FLAT); + res = try_place(1, 0x0001, STONE_FLAT); + const uint8_t drops[1] = {1}; + res = try_move(1, M_LEFT, 1, drops); + + printf("Result: %d\n",res); + printf("%o %o \n",colours[0],celldat[0]); + + free_game(); } |
