Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- /* LOOP
- * draw some stuff
- * get some input
- * do some simulation
- * decide if we should quit
- * loop again
- * */
- bool shouldQuit = false;
- int turnNumber = 0;
- // < <= > >= == !=
- // Boolean operators
- // && AND
- // || OR
- // ! NOT
- // Operate on a boolean value
- // ! negates the boolean value, so true becomes false, false becomes true
- int arrowCount = 0;
- int arrowIncrease = 1;
- // Press a key to spend all your arrows.
- // Now every turn you make more arrows based on the number of arrows you just spent.
- // Come up with a game, using this basic format, or keeping track of the turn number (maybe some other stuff)
- // printing out based on the state of the game
- // responding to inputs
- // Scope and variable declarations
- while (!shouldQuit)
- {
- Console.Clear();
- Console.WriteLine("Hey gamer.");
- Console.WriteLine("Turn number is " + turnNumber);
- ConsoleKey k = Console.ReadKey(true).Key;
- if (k == ConsoleKey.Escape)
- {
- shouldQuit = true;
- }
- turnNumber = turnNumber + 1;
- }
- Console.WriteLine("Goodbye World!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement