Skip to content

Instantly share code, notes, and snippets.

View Frenzycore's full-sized avatar
💭
I know what you're looking for...

Chizuru Frenzycore

💭
I know what you're looking for...
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
// To debug: Console.Error.WriteLine("Debug messages...");
internal class Player
{
private const int MAX_PRODUCTION = 3;
private const int UPGRADE_COST = 10;
private static string[] _inputs;
using System;
class GuessTheNumber
{
static void Main()
{
var random = new Random();
int numberToGuess = random.Next(1, 11);
int attempts = 0;
console.log("Hello, World!");
const moods = ["coding", "debugging", "googling", "questioning life"];
console.log(moods[Math.floor(Math.random() * moods.length)]);
a = float(input("First number: "))
op = input("Operator (+ - * /): ")
b = float(input("Second number: "))
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
# This constant contains all the space keys for a tic tac toe board:
ALL_SPACES = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
def printBoard(board):
print(' ' + board['1'] + '|' + board['2'] + '|' + board['3'] + ' 1 2 3')
print(' -+-+-')
print(' ' + board['4'] + '|' + board['5'] + '|' + board['6'] + ' 4 5 6')
print(' -+-+-')
print(' ' + board['7'] + '|' + board['8'] + '|' + board['9'] + ' 7 8 9')
import time, sys,random
wins = 0
losses = 0
ties = 0
# Display the instructions.
print('Rock, Paper, Scissors, Spock, Lizard')
print('- Rock beats scissors and lizard')
print('- Paper beats rock and spock')
import random
WIDTH = 39 # Width of the maze (must be odd).
HEIGHT = 19 # Height of the maze (must be odd).
SEED = 1
random.seed(SEED)
assert WIDTH % 2 == 1 and WIDTH > 2
assert HEIGHT % 2 == 1 and HEIGHT > 2
# Use these characters for displaying the maze:
import time, random
dieMessage = ['You DIED! Thank goodness!', 'Good riddance.', 'My Condolences. You failed.', 'I will tell your parents that you died with honor.', 'I will tell your parents that you died for nothing.', 'Will somebody clean this up?']
surviveMessage = ['YEEEHAW! I ain\'t gon die today!', 'Thank heavens! You didn\'t get your brains blown out!', 'You have not died... YET.', 'This is getting intense.', 'Dang.', 'Maybe next time...']
while True:
# Display the welcome message:
print('Welcome to Russian Roulette!')
time.sleep(2)
-- Auto mob farm (patrol -> wait -> clear)
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui")
local LocalPlayer = Players.LocalPlayer
-- Config (editable)
local Config = {