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
// Tic Tac Toe in C. V1.0 by James 26/05/2019 | |
// This is my first bigger C project. It was actually a lot easier than a I | |
// thought it would be! It's not great, but it works perfectly decently. | |
// I started working on it sometime around 4 in the morning, and I'm done before | |
// 7 in the morning. So I didn't spend much time on it. | |
// Also, I can't really claim I did the check function myself, though. The first time | |
// I ever made tic tac toe (in C#), I ended up writing looping functions which could |
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
class Program | |
{ | |
// This is a Pokemon style text-based battle game. | |
static void Main(string[] args) | |
{ | |
bool playing = true; | |
Console.Write("Enter your battle monster's name: "); | |
string playerName = Console.ReadLine(); |
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
static void Main(string[] args) | |
{ | |
string username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); username = ChooseRandomAdjective() + ChooseRandomNoun(); | |
Console.WriteLine(username); | |
Console.ReadLine(); |