This file contains 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 <SFML/Graphics.hpp> | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
// Globals | |
sf::RenderWindow* window; | |
int RES_X = 800; | |
int RES_Y = 600; |
This file contains 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 <SFML/Graphics.hpp> | |
#include <iostream> | |
int RES_X = 800; | |
int RES_Y = 600; | |
sf::RenderWindow window(sf::VideoMode(RES_X, RES_Y), "Sample Game"); | |
int main() { | |
std::cout << "Success"; | |
} |
This file contains 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 random | |
#horn clause: at most one true | |
pGoal = 0.1 | |
def randToVar(val, vars): | |
val -= vars | |
if val >= 0: | |
val += 1 |
This file contains 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 random | |
import math | |
def randToVar(val, vars): | |
val -= vars | |
if val >= 0: | |
val += 1 | |
return val | |
def randClause(vars): |
This file contains 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 os | |
folderPath = 'InsertDirectoryPathHere/src/' | |
# mainFile is the file containing the main class. | |
mainFile = 'ProjectMainClass.java' | |
# exclude these files from the project. | |
excluded = ['State.java', 'Frame.java', 'Label.java'] | |
def printSafe(s): | |
s = str(s).encode('ascii', 'ignore') |