DHBW-SysProgCompiler / BattleShipsModules

Modules for BattleShips
GNU General Public License v3.0
0 stars 0 forks source link

Gamedesign #4

Closed MaxAlberti closed 6 months ago

MaxAlberti commented 7 months ago

Design the overall gameplay flow. Figure out what screens are needed and how the user can interact with tem.

MaxAlberti commented 7 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)

MaxAlberti commented 7 months ago

Very usefull Links: https://www.asciiart.eu/vehicles/navy https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences

MaxAlberti commented 7 months ago

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

Screenshot_20240134

MaxAlberti commented 7 months ago

Logos: https://textkool.com/en/test-ascii-art-generator?text=BattleShips

Erix0815 commented 7 months ago

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

Erix0815 commented 6 months ago

Image