Skip to content

magouin/Corewar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites: -ncurse

There is two main files: -ASM is a program that compile a ASMlike(.s) language in hexa opcode file (.cor) -VM is the Virtual Machine (something like a arena), where the programs were fight

#Compile the project with:

$> make

#You will get tow executable named asm and corewar #You have to create hex opcode file with

$> ./asm .s

#You can find .s file example in the champion directory #After compiled asm file you can fight your programs with ./corewar #To get the usage juste run ./corewar

#######################################################################################

Example:

#Created .cor of the Kappa.s file $> ./asm champion/Kappa.s

#Created .cor of the Asombra.s file $> ./asm champion/Asombra.s

#Run ncurse to see the fight between Kappa and Asombra $> ./corewar -g champion/Kappa.cor champion/Asombra.cor

About

It's an Arena where program can fight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published