Skip to content

Instantly share code, notes, and snippets.

View jrjames83's full-sized avatar

Jeff James jrjames83

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// related to https://www.youtube.com/watch?v=XATr_jdh-44
// before watching
var circles = [];
var used_circles = [];
let LAPS = 0;
let N_TRIES = 10000;
function randomIntFromInterval(min,max) {
return Math.floor(Math.random()*(max-min+1)+min);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrjames83
jrjames83 / maze_solver_symbol_dirs.py
Created November 19, 2018 15:57
maze navigation top left to bottom right, gather valid paths
# - + + + < | > > * < < < v - - - - - seems feasable
# exact path is still ambiguous......was the move actually up or down, etc...
maze =[
["-", "+", "+", "+", "<"],
[">", ">", "|", "<", "<"],
[">", ">", ">", ">", "*"],
["v", "<", "<", "<", "<"],
["-", "-", "-", "-", "-"]
import string
import random
from typing import Dict, Generator, Iterator, Tuple
def gen_n_dimensional_boggle_board(n: int) -> list:
return [ [random.choice(string.ascii_lowercase)
for x in range(n)] for row in range(n)]
BOARD = gen_n_dimensional_boggle_board(4)