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.
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
// 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.
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
# - + + + < | > > * < < < v - - - - - seems feasable | |
# exact path is still ambiguous......was the move actually up or down, etc... | |
maze =[ | |
["-", "+", "+", "+", "<"], | |
[">", ">", "|", "<", "<"], | |
[">", ">", ">", ">", "*"], | |
["v", "<", "<", "<", "<"], | |
["-", "-", "-", "-", "-"] |
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
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) |