2023-07-20

maths

hmm

nodes and trees and binary and 3s

for a game i'm making, i want the map to be a tree, and each room in the map is a node.

i've been thinking about it for quite a while..

i've written it different ways and stopped. now i'm gonna solve it.

note: i have no idea what i am talking about

if read: zoom to next week

just a touch on binary..

what i find interesting is that in powers of the base number the 1 shifts over

2**1 = 10 .. 2**2 = 100 .. 2**3 = 1000

and then it's the same for decimal or other bases

10**1 = 10 .. 10**2 = 100 .. 10**3 = 1000

log2 100 = 2 .. log10 100 = 2
log2 1000 = 3 .. log10 1000 = 3

in a binary tree, there are 2 paths forward and one path back..

2 power

i'm kinda tired of trying to learn the right way of doing it..

i'm just diving in.

going to try my way..

i want a node to have six outputs..

n, e, s, w.. up and down

cube

if i make it that a room can have a maximum of three exits, then it will be easier.

so even though a room can have possible six exits, it'll never have them all..

i thought maybe it needs a minimum of 2.. but nah.

a node can't have 0 exits unless there is at least 1 path there thru an extra dimension. this counts as a path. and maybe there are nodes but with no way of commuting there. well, they can exist in a different way. maybe a communication path is something to think about. maybe there is infinity in zero.

1-exit rooms could be the root room, or special rooms that you don't travel through, you just visit. there can also be extra dimension travel available. but that applies to any node anyway..

i'm imagining a room that has an attic. the attic is considered another room in the game. another node. but anyway, the room exit to the attic, and the attic exit to the room. the attic will likely have just that 1 exit..

as the game/map gets generated differently each game, i might have to think about exit contexts. what exits are more likely based on the room type..

maybe

and maybe i won't have it great like a computer scientist should

but i will enjoy trying..

stay tuned..

i'll be scribbling...

2 power

and i gotta remember to talk about taxis.

that'll be here soon.

taxis are shortcuts..

portals but with many more dimensions..

like the deLorean or the more modern, wild west train.

2 way

i'm not sure where i'm going with this.. what is a decimal place in binary?

anyhoo, i'll write more on this next thursday

columns = list(zip(*matrix))

2023-07-27 - maths week 1