Skip to content

This repository features a console-based matrix war game created to practice programming logic. It offers a hands-on opportunity to strengthen logic programming skills through strategic decision-making and battles in a matrix battlefield.

License

Notifications You must be signed in to change notification settings

FernandoSchett/laponia_battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚔️ Laponia Battle ⚔️

Developed by 💻:

Special thanks to 🥰:

  • Marcos Lapa, our supervising professor, your experience and knowledge have been invaluable to our progress.

About 🤔:

This is a project made for Logic Programming subject at SENAI CIMATEC, it's a console-based matrix game: Simulates a large battle in Lapland, where players position their soldiers represented by 1 and 2, # or @ on a matrix grid.

Resourses 🧑‍🔬:

  • Soldier placement: Players can position their troops on the battlefield during the setup phase.

  • Soldier types: Players can choose between four types of soldiers:

Type "1" soldiers can only shoot forward, stopping at the first enemy encountered.

Type "2" soldiers can only shoot diagonally.

South Special soldier "@": The @ soldier can fire a 3x3 bomb anywhere on the field, eliminating all enemy soldiers within the affected area.

North Special soldier "#": The # soldier can shoot in a straight line, eliminating all enemies in its path.

  • Battle between north and south: After troop placement, the battle commences between the north and south sides of Lapland, the goal is to eliminate the enemy soldiers before losing all of your own troops.

  • Interface that allows players to position soldiers, and execute attacks.

  • Text visual feedback: The game provides visual feedback during the battle, indicating the movements and attacks performed by the soldiers, enabling players to track the progress of the battle with victory/defeat messages

  • Game restart: Players have the option to restart the game and play again.

Dependencies 🚚:

Laponia Battle dependencies are the standart C and C++ libraries and:

  • <ctime>.
  • <locale.h>.

Make sure you have all dependencies before running Laponia Battle.

How to run it 🏃:

First, clone this repository. After that, compile laponia_battle.cpp with the following command:

gcc ./src/laponia_battle.cpp -o laponia_battle

Then, run the executable code with:

./laponia_battle

Screens 🎬:

Laponia Battle screens appearance turn out to be like like Figure 1.

Figure 1 - Screens from Laponia Battle.

Development Process ⚙️:

Basically everyone ocasionally just hang out at discord to code and have fun :).

Tools Used 🛠️:

How to contribute 🫂:

Feel free to create a new branch, fork the project or contact one of us to develop at Laponia Battle Project!.

Licence 📜:

Apache V2

About

This repository features a console-based matrix war game created to practice programming logic. It offers a hands-on opportunity to strengthen logic programming skills through strategic decision-making and battles in a matrix battlefield.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages