Glare
@Glare
“Dream as if you'll live forever. Live as if you'll die today.”
Hello everyone. It's been a while since I last posted. I just wanted to share this text-based Tic-Tac-Toe game that I made. It checks for ties, can be
C++
lightningrock I know this is a bit late, but um... here's a bug:
image
Basically, if you just spam the keys and the enter button, it will just keep printing that even after you stop.2 years ago
DynamicSquid Cool! Some tips though: don't use using namespace std, and use '\n' instead of endl2 years ago
Took me a while to create this. Click on the game once and then use the arrow keys to move. Every time you eat an apple, your snake grows in length. I
Python
Hi there. I'm new to Repl, and I have been trying to run some C++ files from my repository but unfortunately, I don't know what to put for "Configure
Coder100 repositories don't run programs...
do you mean repl?
Next time just commit the .replit file:
run="g++ .cpp"
Where `` is the cpp file.
Does that help?
EDIT: I read your question wrong
Here is the run command:
g++ main.cpp ; ./a.out
Now, I am assuming you are trying to run the main.cpp file, but if you want to configure what gets run each time:
echo -e "enter in files" files ; g++ $files ; ./a.out
`2 years ago
DynamicSquid In the .replit file, do:
run="g++ -o "
So for example if you're trying to run test.cpp, then you would do:
g++ -o test test.cpp
`2 years ago