Commit Graph

108 Commits

Author SHA1 Message Date
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
Kristofers Solo
01a84bc201 feat(ai): add get_holes_sum 2024-01-05 18:40:00 +02:00
Kristofers Solo
25e43aeea3 refactor(ai) 2024-01-05 18:39:07 +02:00
Kristofers Solo
8283742b62 feat(ai): add get_holes 2024-01-05 18:38:54 +02:00
Kristofers Solo
0d4ab8aab7 refactor(ai): add Optional
fix

fix
2024-01-05 18:12:25 +02:00
Kristofers Solo
4ab9b4bb2a feat(ai): add get_bumpiness 2024-01-05 17:59:13 +02:00
Kristofers Solo
f673a9f850 feat(ai): add get_col_transition 2024-01-05 17:59:13 +02:00
Kristofers Solo
dec7c4d0e0 feat(ai): add get_row_transition 2024-01-05 17:59:13 +02:00
Kristofers Solo
b762fe6774 refactor(ai): tests 2024-01-05 17:43:27 +02:00
Kristofers Solo
aca113f562 refactor(ai): get_peaks 2024-01-05 17:43:27 +02:00
Kristofers Solo
1ce17c43ba refactor(ai): add max and sum peaks
refactor(ai): mean -> sum
2024-01-05 17:43:27 +02:00
Kristofers Solo
85254c5724 feat(ai): add get_peaks unittests 2024-01-05 17:43:27 +02:00
Kristofers Solo
bd4f30b1b5 refactor(utils, ai): move chekpoint configs 2024-01-05 17:13:57 +02:00
Kristofers Solo
bbdb824e52 feat(ai): add get_peaks 2024-01-05 17:13:23 +02:00
Kristofers Solo
4a985b7e01 refactor(ai): move fitness.py 2024-01-05 17:13:03 +02:00
Kristofers Solo
b877fc2a59 ignore chekpoints/ 2024-01-05 16:35:10 +02:00
Kristofers Solo
0e5e502898 feat(ai): add checkpoint path as argument on launch 2024-01-05 16:34:26 +02:00