Commit Graph
28 Commits
Author SHA1 Message Date
paulusja f7c2959226 Add ai generated exercises and their solutions. 2026-04-30 17:04:47 +02:00
paulusja a4d25637c4 Use other colors. 2026-04-30 15:27:05 +02:00
paulusja 6f6472fd44 Move game loop into own class. 2026-04-30 15:23:44 +02:00
paulusja c4bbe09048 Add game over screen. 2026-04-30 15:11:25 +02:00
paulusja d5637d989e Reduce game speed. 2026-04-23 18:26:52 +02:00
paulusja a34198e290 Fix bug that prey might be placed elsewhere when prey's collision detection is done before snake's collision detection: Replace prey in following update step and not during collision detection. 2026-04-23 18:26:21 +02:00
paulusja d820318814 Let snake grow when it hits the prey. 2026-04-23 18:24:42 +02:00
paulusja 31e85ee33b Replace prey on hit. 2026-04-23 17:07:45 +02:00
paulusja 5d33259119 Add prey. 2026-04-23 16:55:47 +02:00
paulusja d19c45abbc Kill snake on collision with itself. 2026-04-23 16:39:56 +02:00
paulusja 0e72331f45 Add snake collision with wall. 2026-04-23 16:33:28 +02:00
paulusja a7735e2084 Draw after update. 2026-04-23 15:18:12 +02:00
paulusja 102b89f449 Add walls. 2026-04-23 15:15:24 +02:00
paulusja 5090c09123 Prevent snake from turning around directly. 2026-04-23 14:52:45 +02:00
paulusja 129c6d5f3b Add ignore list for snake. 2026-04-23 14:41:52 +02:00
paulusja 5f411e2518 Add snake control. 2026-04-23 14:39:41 +02:00
paulusja b354a7dd90 Move snake. 2026-04-16 16:48:29 +02:00
paulusja 7833713d31 Add length for snake. 2026-04-16 16:30:56 +02:00
paulusja 30c4773f13 Add type annotations. 2026-04-16 16:16:50 +02:00
paulusja 3c64cf8228 Add first version of snake. 2026-04-16 16:10:56 +02:00
paulusja 01e4afd552 Add first version of snake. 2026-04-16 16:09:49 +02:00
paulusja dc9ff0582f Add escape key for quitting. 2026-04-16 15:26:26 +02:00
paulusja 8c07acc22f Add input manager. 2026-04-16 15:06:56 +02:00
paulusja 6186b2b40f Add background color. 2026-04-16 14:53:24 +02:00
paulusja ed13737c0d Add window. 2026-04-16 14:47:29 +02:00
paulusja 0f9efd4d0b Add initial window. 2026-04-16 14:25:56 +02:00
paulusja ebed7a33a6 Add current solutions. 2026-03-26 17:17:32 +01:00
paulusja 6ed2e159f1 Add results from 19.03. 2026-03-19 17:16:58 +01:00