Skip to content

Instantly share code, notes, and snippets.

View OCodingIsFunO's full-sized avatar

OCodingIsFunO

View GitHub Profile
@OCodingIsFunO
OCodingIsFunO / Guessing Game One
Last active January 12, 2019 13:06
Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. Extras: Keep the game going until the user types “exit” Keep track of how many guesses the user has taken, and when the game ends, print this out.
#Imports random
import random
guesses = 0
game = True
#Generates random number
number = random.randint(1, 9)
print("You can type exit any time to quit!")
#While loops keeps game going as long as game is True
@OCodingIsFunO
OCodingIsFunO / factorio_headless_guide.md
Created April 11, 2021 07:30 — forked from othyn/factorio_headless_guide.md
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide

So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.

The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now). The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.

Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job