This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
void handle_args(int argc, char **argv) { | |
if (argc < 2){ | |
help_message(); | |
return 1; | |
} | |
else { | |
handle_options(argv[1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.util.ArrayList; | |
import java.util.Random; | |
/* | |
* Cell.java | |
* Defines a cell entity which can move around the canvas, eat food and multiply. | |
*/ | |
public class Cell extends Entity { | |
private final int default_delay; |