Skip to content

Instantly share code, notes, and snippets.

View AnakinTrotter's full-sized avatar

Anakin Trotter AnakinTrotter

View GitHub Profile
#!/bin/bash
echo "Welcome to typeracer!"
echo "Type the following text as fast as you can: "
echo ""
printf "" > random.txt
# get random words
shuf data.txt -n 10 >> random.txt
#!/bin/bash
player_wins=0
ai_wins=0
ties=0
while true; do
echo ""
echo "Rock, paper, scissors, or quit (r, p, s, q): "
read user_input
# Inspired by Gonkee's [_Godot 3: How to make a Joystick_](https://www.youtube.com/watch?v=uGyEP2LUFPg)
# Version V0.1.1
# Assumptions
# Joystick : Node2D -> Joystick.gd
# |- Boundary : Sprite
# |- Handle : TouchScreenButton
# Motivation