๐
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
function randint(a=0, b) { | |
/* Return random whole number between a and b */ | |
return Math.floor(Math.random() * (b - a + 1)) + a; | |
} | |
function choice(list) { | |
/* Return positive integer to index list */ | |
index = Math.abs(Math.floor(Math.random() * (list.length - 0 + 1)) - 1); | |
return list[index]; | |
} |
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
from __future__ import annotations | |
import sys | |
import os | |
import logging | |
from typing import Union | |
import pygame | |
from pygame.surface import Surface, SurfaceType | |
import util |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
File: main.py | |
Author: Joshua Rose | |
Version: 0.1.0 | |
Description: ... | |
""" | |
import os |
NewerOlder