Commit Graph

124 Commits

Author SHA1 Message Date
Kristofers Solo
29cc83a2ac docs: update docstrings 2024-01-08 18:15:36 +02:00
Kristofers Solo
a0ff4a438d chore(game): remove unused import 2024-01-08 17:52:42 +02:00
Kristofers Solo
cbe01b3951 fix(game): duplicate tetromino on restart 2024-01-08 17:50:19 +02:00
Kristofers Solo
48d5e1d705 adjust game settings 2024-01-08 17:13:41 +02:00
Kristofers Solo
491886b134 update ruff options 2024-01-08 17:13:18 +02:00
Kristofers Solo
990c98f45e docs: add pdf document 2024-01-08 17:13:05 +02:00
Kristofers Solo
3b7f886f8a delete highscore file
fix highscore path
2024-01-07 21:44:21 +02:00
Kristofers Solo
1175558f52 docs: add readme 2024-01-07 20:43:37 +02:00
Kristofers Solo
c87eafe283 refactor(game): remove main.py 2024-01-07 20:19:17 +02:00
Kristofers Solo
d129ed845f feat(game): read/save highscore 2024-01-07 20:09:12 +02:00
Kristofers Solo
89fbf2e5ab style: cleaned up code 2024-01-07 19:56:11 +02:00
Kristofers Solo
fa31b192e7 feat: make installable 2024-01-07 19:46:06 +02:00
Kristofers Solo
eefa176228 fix mypy issues 2024-01-07 19:06:22 +02:00
Kristofers Solo
442feac0cb refactor: use 1 log file 2024-01-07 19:03:53 +02:00
Kristofers Solo
bdb785303d feat(game): add different colors 2024-01-07 18:34:34 +02:00
Kristofers Solo
4bd4ff00ad feat(game): add phantoms 2024-01-07 18:13:01 +02:00
Kristofers Solo
c58bf61603 feat(game): update music 2024-01-07 17:31:20 +02:00
Kristofers Solo
f85b72a150 refactor(game): use pygame.key.key_code() 2024-01-07 17:14:09 +02:00
Kristofers Solo
1cc0b081ec feat(game): add Settings class 2024-01-07 16:55:21 +02:00
Kristofers Solo
37132f54e0 feat(game): volume from file 2024-01-07 16:52:58 +02:00
Kristofers Solo
8e3ed493e0 feat(game): movemnt keys from file 2024-01-07 16:47:24 +02:00
Kristofers Solo
f1e854a38c feat(utils): add settings.toml 2024-01-07 15:55:07 +02:00
Kristofers Solo
06f962f5c7 delete ai 2024-01-07 15:29:55 +02:00
Kristofers Solo
77cd153b10 refactor(ai) 2024-01-07 04:29:01 +02:00
Kristofers Solo
c8859bc571 refactor(game) 2024-01-06 23:18:10 +02:00
Kristofers Solo
080ba1b9cb fix imports 2024-01-06 21:25:42 +02:00
Kristofers Solo
e9cd973360 feat(ai): add bumpiness calculation 2024-01-06 18:22:08 +02:00
Kristofers Solo
31efe9e265 feat(ai): add holes calculation 2024-01-06 18:10:22 +02:00
Kristofers Solo
1b2158cb25 feat(ai): add complete lines calculation 2024-01-06 18:01:07 +02:00
Kristofers Solo
41cef03f50 feat(ai): add aggregate height calculation 2024-01-06 17:56:02 +02:00
Kristofers Solo
e265581262 fix(ai): imports 2024-01-06 17:55:44 +02:00
Kristofers Solo
231640dec6 feat(game): utilize GameMode 2024-01-06 17:43:44 +02:00
Kristofers Solo
82d26ddc03 feat(game): allow rotation near borders
feat(game): limit loop size
2024-01-06 17:36:25 +02:00
Kristofers Solo
6e5a7f3d61 tweak movement delay 2024-01-06 17:23:46 +02:00
Kristofers Solo
126a49f38f feat(game): display highscore 2024-01-06 17:23:18 +02:00
Kristofers Solo
e77dce308b feat(game): add drop timer 2024-01-06 16:58:34 +02:00
Kristofers Solo
a56f457482 refactor(game): mouse position 2024-01-06 16:50:37 +02:00
Kristofers Solo
40b6556c97 refactor(game): remove Field enum 2024-01-06 16:45:30 +02:00
Kristofers Solo
786ecb3536 feat(game): add disabled button colors 2024-01-06 16:13:28 +02:00
Kristofers Solo
6fb7fee090 feat(game): add button highlight 2024-01-06 05:17:09 +02:00
Kristofers Solo
7d5bf8e658 feat(game): add main menu 2024-01-06 05:07:46 +02:00
Kristofers Solo
0afe1ed3cb refactor(game): pass mypy 2024-01-06 03:59:13 +02:00
Kristofers Solo
bb80400ad7 game(feat): add game mode 2024-01-06 03:09:10 +02:00
Kristofers Solo
6b3f0ea619 feat(game): add logs 2024-01-06 03:02:33 +02:00
Kristofers Solo
364988a8f8 feat(game): show only 1 next figure 2024-01-06 03:00:27 +02:00
Kristofers Solo
2a2d1412b6 adjust config 2024-01-05 21:13:30 +02:00
Kristofers Solo
599f456c46 feat(ai): add draw_net 2024-01-05 20:16:52 +02:00
Kristofers Solo
80b1c7518e docs(ai): add docstrings 2024-01-05 20:04:30 +02:00
Kristofers Solo
cf952c4c12 feat(ai): adjust the fitness calculations 2024-01-05 19:54:19 +02:00
Kristofers Solo
7fd44f2834 feat(ai): add get_wells 2024-01-05 19:06:48 +02:00