Closed MaxAlberti closed 6 months ago
Proposed board layout from @Erix0815 :
A B C D E F G H I J
+---+---+---+---+---+---+---+---+---+---+
0 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
1 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
2 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
3 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
4 | | | O | O | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
5 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
6 | | | | | | x | | | | |
+---+---+---+---+---+---+---+---+---+---+
7 | | |< >| | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
8 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
9 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
O = miss X = Hit < > = Cursor (falls wir mit cursor und wasd wollen statt mit koordinaten i.e.: b6)
ChatGPT example:
\033[1;36m---------------------------------------------\033[0m
\033[1;36m| \033[1;33mBATTLESHIPS GAME\033[1;36m |\033[0m
\033[1;36m---------------------------------------------\033[0m
\033[1;33m| |\033[0m
\033[1;33m| \033[1;31m1 2 3 4 5 6 7 8 9 10 \033[1;33m|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|A|\033[0m | | | | | | | | | |\033[1;33mA|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|B|\033[0m | | | | | | | | | |\033[1;33mB|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|C|\033[0m | | | | | | | | | |\033[1;33mC|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|D|\033[0m | | | | | | | | | |\033[1;33mD|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|E|\033[0m | | | | | | | | | |\033[1;33mE|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|F|\033[0m | | | | | | | | | |\033[1;33mF|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|G|\033[0m | | | | | | | | | |\033[1;33mG|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|H|\033[0m | | | | | | | | | |\033[1;33mH|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|I|\033[0m | | | | | | | | | |\033[1;33mI|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m|J|\033[0m | | | | | | | | | |\033[1;33mJ|\033[0m
\033[1;33m| \033[0m+---+---+---+---+---+---+---+---+---+---\033[1;33m+\033[0m
\033[1;33m| |\033[0m
\033[1;36m---------------------------------------------\033[0m
\033[1;36m| \033[0m\033[1;37mStatus:\033[0m |
\033[1;36m| \033[0mPlayer 1: \033[1;32m3 ships remaining\033[0m |
\033[1;36m| \033[0mPlayer 2: \033[1;32m4 ships remaining\033[0m |
\033[1;36m---------------------------------------------\033[0m
https://github.com/DHBW-SysProgCompiler/BattleShipsModules/issues/4#issuecomment-1926519980
Feature-Request: Select a Random Ship-Ascii-Art from a predetermined list at runtime
another documentation of ansi-controls: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
Design the overall gameplay flow. Figure out what screens are needed and how the user can interact with tem.