You have no idea how to use our Core Wars program? No Problem. We will take you by the hand and show you the functions step by step. Just take a few minutes to read our little help.
The Connection page is important, because you have to be connected to the server to play this wonderful game. So you should start with this page. Here is a small picture to show you what you can do at this page:
First you have to enter the IP-address of the server in the editable box. The IP address in this box is the default value, so usually you won't have to change it. The second thing is to enter a port you can connect to. Just like the IP address, the default port is already the value in the box. Are you finished with the IP address and the port? Just click the "Connect" button for connecting with the server. If the login to the server was successful, the message: 'Connected to the server' appears besides the buttons.
Now you are nearly there. To use our game you must have a username and a
password! Don't have one? Please send us a mail and we will arrange one for you.
(e-Mail: PP-Team12@pms.ifi.lmu.de)
You already have a username and a password? Then enter them in the textfields and
click the "Login"-Button. If you are successfully logged on to the server, the message:
'User accepted. Running.' appears besides the buttons.
You must enter the number of warriors you want to play with in the textfield of the panel Numbers. The number must be between 2 and 5. After entering the number you have to click the "getListOf Warriors"-Button.
Pressing the button mentioned above changes the number of warriors in the warriors panel. The drop down lists make it possible for you to choose the warriors you want to battle with. Also give a startpoint for each warrior or use the default value -1 for a random choice of startpoints. In this panel you can also type in the number of cycles after which a game is decided to be drawn and how big the protection zone is (minimal distance between the warriors).
There are two methods you can choose. The basic definition is "Automatic". In this mode the fight is carried out from start to end without interruption. When it is over, the result appears in the "Result" box. Or you can choose the "Step by step" mode, if you want to see every step of the fight in the arena. To show the next step you have to press the "Next"-button.
The default size of the arena is 8192. But you have the possibility to enter another size in the field. But be careful! The size must be between 1400 and 9200 because of the protection zone. This is required to minimize the risk that the startpoints of the warriors are too close to each other. In that case, one warrior would overwrite the other and the fight would be over very soon. With preventing that scenario it is more likely that the better warrior actually wins the fight.
With the speed slider you can select how fast you want the fight to be. The range of values is between 1 and 100 and is displayed in the text box at the side of the slider.
If you click on the button "Start" the fight begins. If you use the "Step by step" mode you have to use the "Next" button to see the next step.
The arena shows you the memory. Each little square represents one memory cell. The warriors are drawn with different colours. Which colour stands for which warrior? Just look at the warrior panel and you know it. The names of the warriors are highlighted with the corresponding colour. During a fight you can see the warriors moving through the memory after you click the "Start"-Button.
In the result area you can see the result of the combat. The display shows the winner of the game (if there is one) and the number of cycles after which the game ended.
In the settings area you can start a new game by clicking the "NewGame"-button. All your inputs are replaced by the default values. If you like to see the code content of the Core you must click the "CoreContent"-button. The code content of the memory cells will be shown.
If you press the button "List" then the list of warriors is loaded from the server. Now you can choose a warrior name. The selected name will be highlighted in blue colour.
If you now click the "Show Code"-Button, the code of the chosen warrior is shown in the "Code Area"-Field, but only shown. Until now, you can't edit anything.
In case you want to edit the code of a particular warrior you have to press the "Edit"-Button. Now you can write text in the "Code Area" or change or delete available code.
If you want to load the code of a warrior you have saved on your computer, click the "Load"-Button. Now you can see the code in the "Code Area". If you want to save it on the server press the "Upload"-button.
If you click the "Delete"-Button you delete the warrior permanently from the folder on the server where the warriors are stored. A message box will pop up where you have to confirm the erasing procedure.
But you can also save new or changed warriors in the folder where all warriors are stored, on the server, if you click the "Save"-Button. A small window will pop up where you can enter the name of the file. But pay attention, the file must end with a *.red filename.
This pages shows you the statistics of the warriors. So if you like to know which warrior is the best and which one is the worst, just press the "Update"-Button at the bottom of the page. It will take a moment to load the statistics.
You might ask yourself how the statistic files are created. The answer is simple. The server runs permanently and while waiting for clients to play, an auto game is carried out in the background. Two random warriors fight against each other and the statistic files are created and saved on the server. So if you press the "Update"-Button again, the new statistic files are loaded and it is likely that some statistics have changed.
What can you see in the statistic table?
The first table, which is filled after clicking the "Update"-Button, gives you a
first outline over the statistic of all warriors. It shows the name of the warriors
and gives you the number of wins, losses and draws. The column "Total Cycles" contains
the total number of cycles the warrior was running. The column "avg Cycles per fight"
shows the average number of cycles the warrior runs in one fight. And last but not least
the column "# fights" exhibits the number of fights the warrior has combated.
Now you can click on a warrior name and the whole row will be highlighted with blue colour.
The second table will be filled after you have chosen a warrior. In these tables you have the same columns as in the first table. But now in the column "Warrior Name", the names of the opponents of the warrior chosen in the first table are displayed. In the column "# fights" the number of fights between these two warriors are shown. And also all other numbers show you the data only for the fights between these two enemies.
And now we will answer your ultimate question: Which team has built this Core Wars game you will from now on play day and night? We are team number 12!
If you like send us your feedback!
(e-Mail: PP-Team12@pms.ifi.lmu.de)
And enjoy playing!