Giter Site home page Giter Site logo

mohamedlazybob / corewar Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 11.24 MB

Corewar is an algorithmic project/game in the curriculum of 1337 (42 Network). The purpose of it is to recode the programming game “Core War”, in which battle programs compete for the control of a virtual computer.

C 97.24% Makefile 2.29% Shell 0.24% Assembly 0.23%
c assembly 42projects 1337school 42network visualization corewar visualiser assembler virtual-machine

corewar's Introduction

  • 🌱 Writing TypeScript here and there.
  • 🔭 Currently, I am building projects for clients alongside my job as a Flying bocal member at @01-edu
  • 📫 How to reach me: [email protected]

corewar's People

Contributors

ayagoumi avatar del-alj avatar mohamedlazybob avatar mohammedesafi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

corewar's Issues

parsing validation

we need to check for the file extension,
the VM should display an error where the extension is false.

Code size

we should put a limit to the size of the champion code. == CHAMP_MAX_SIZE

code refactoring

the struct t_player should be placed inside the other struct t_input_data since it's also an input from the user.
the end result well be somthing like this :

typedef struct	s_playrs
{
	t_header		header;
	unsigned char	*exec_code;
}				t_playrs;


typedef struct	s_input_data
{
	int		players_counter;
	char	*names[MAX_PLAYERS];
	int		ids[MAX_PLAYERS];
	int		nbr_cycles[2];
	int		fd[MAX_PLAYERS];
	int		visu;
	t_playrs	*players; // add this 
}				t_input_data;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.