💻 Corewar 🗡️

Corewar

Table of contents 📑

Description 📝

The Corewar is a project carried out by groups of 2 (see Contributors, during our 1st year in EPITECH Grand Ecole program.
Its purpose is to recreate in C a Core War video game.
The aim of Corewar is to have robots/champions fight in an arena that functions as a virtual machine.
This project follows on from the Robot Factory, another school project aimed at creating robots/champions for the Corewar.

Usage ⚔️

You can run Corewar like this :

./corewar -dump 1000 -n 1 -a 0 champion.cor -n 2 -a 200O champion.cor  

For more information, please see the help section.

> ./corewar --help  
USAGE  
 ./corewar [-dump nbr_cycle] [[-n prog_number][-a load_address] prog_name] ...  
  
DESCRIPTION  
 -dump   nbr_cycle dumps the memory after the nbr_cycle execution (if the round isn't already over) with the following format: 32 bytes/line in hexadecimal (A0BCDEFE1DD3...)  
        -n      prog_number sets the next program's number. By default, the first free number in the parameter order  
        -a      load_address sets the next program's loading address. When no address is specified, optimize the addresses so that the processes are as far away from each other as possible. The addresses are MEM_SIZE modulo  

Result 🚩

The result of this project is an almost perfect Corewar.
If you discover a problem or an error, don’t hesitate to create an issue and report it to us as soon as possible.

my.epitech.eu result

Category Percentage Numbers of tests Crash
Check binary 100% 1/1 No
Results 100% 1/1 No

Keynote result

We got the best Corewar of our class.

Project Mark :

Mark : 12
Preliminary (2 / 2) :

Virtual Machine - Basics (5 / 5) :
Tout ok
Virtual Machine - Algorithm app. (3 / 3) :
Tout est prévisible
Virtual Machine - Scheduling (2 / 2) :
OK

Oral Mark :

Mark : 4341
Testing Policy (1 / 4) :
Tests unitaires librairie
Methodology and Organisation (40 / 40) :

Involvment (300 / 400) :
graphique ncurses
Oral Presentation (4000 / 4000) :

Tests and code coverage

Unit tests were performed using criterion.
In this project, only the library code is covered.
Unit tests are still to be performed, but a large part of the code is already covered:

You can compile the project and run the unit tests with this command :

make tests_run

For more details, please click here.

Documentation 📚

The documentation is accessible here.

You can generate the documentation with this command :

make doc  

You need multiple package for generate them :

Code mandatory 📦

Of course, in exceptional cases, we may depart from these rules.

What’s next ? 🚀

Contributors 👥

For this project, we were a group of 2 people. Here are the people in the group: