34 Commits

Author SHA1 Message Date
6d23349e43 Redo how a string is pushed into an array of runes and then printed. (Closes #11) 2025-03-05 12:05:49 +01:00
feced4cd7f New and improved linting capabilities. 2025-03-05 11:55:28 +01:00
76b6150a1e Added pre-commit and replace buildscript with Taskfile 2024-08-15 13:51:10 +02:00
b7af5b64ad Fix the starting tail (no idea why it works this way). 2024-08-15 13:43:01 +02:00
0732e7f809 Add build script v20231124 2023-11-24 22:48:27 +01:00
763ed9b38a #7 Moved score into its own struct. Print score and reason of death at game over. 2023-11-24 22:17:19 +01:00
53e6bfdf4d #5 Print single line tail 2023-11-24 21:38:48 +01:00
44f2c5a41d Disable useless debug coords. 2023-11-24 00:08:13 +01:00
c5827793ef Moving a constant between files. 2023-11-23 23:59:54 +01:00
1a9d75574b #8 Added a function to validate if something is a valid move. 2023-11-23 23:45:55 +01:00
65ccadb6d8 #12 It sucks, doesn't work. 2023-11-23 23:28:44 +01:00
47d5a6fb43 Quick clean-up of the render. =) 2023-11-23 22:51:53 +01:00
2009252bb8 Updated the go.mod/.sum... 2023-11-23 22:50:02 +01:00
b1cbe95485 Cleaning up comments 2023-11-23 22:47:12 +01:00
aea82ab765 #4 Gives the snake a tail. 2023-11-23 22:36:44 +01:00
3902d2b0a9 Prevents the snake from disappearing when its eating an apple. 2023-11-23 19:17:40 +01:00
c459247529 This should be a red apple (???) 2023-11-12 17:03:37 +01:00
b17918f052 Added scoring + apple mechanics 2023-11-12 16:57:52 +01:00
3fb13a165f Esthetics 2023-11-12 16:02:20 +01:00
e66f2a2672 More comments 2023-11-12 16:01:47 +01:00
c2134de4b7 Comments 2023-11-12 16:01:06 +01:00
44724cbbb6 Clean up something that didn't work in the first place. 2023-11-12 15:21:14 +01:00
de33a25864 #2 Start at the center of the screen. Always goes right. Sorta dies when it hits the border, but only when you are pressing a key. If it runs automatically into the border the game freezes. 2023-11-12 14:51:06 +01:00
1f58fa5dbd For #1 split the gameplay loop up from the key processor. Non-blocking channels proof of concept. 2023-11-12 12:55:09 +01:00
9c1a9fc83d Splitting up functions, introducing the game director 2023-11-07 21:47:32 +01:00
b2928ec073 Start with adding a render block, should expand on this. 2023-11-06 23:44:17 +01:00
8e10c82b67 Rename files for later 2023-11-06 23:43:45 +01:00
f2c3cfd891 Use more annoying names 2023-11-06 22:36:47 +01:00
78d73a7920 Trying that godoc format 2023-11-05 23:51:39 +01:00
fc18d74e1f Handle food (functions to select an emoji from a string). 2023-11-05 23:49:27 +01:00
650d06167d Simple design document to give myself direction. 2023-11-05 23:29:00 +01:00
a2077ff2a8 Go things 2023-11-05 23:11:07 +01:00
682219efe7 Playing around a bit and getting the hang of tcell. 2023-11-05 23:09:24 +01:00
Sacha Ligthert
40c16d3ea0 Initial commit 2023-11-02 14:20:33 +01:00