Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AK
akd @lemm.ee
Posts 1
Comments 18
What is the best memory model for a Tic Tac Toe grid? (References and ownership)
  • Nothing wrong with that. My idea was to do a vector (or fixed-size array if you prefer) in one dimension. An example would be something like [0, 1, 2, 0, 1, 0, 2, 0, 2] (where O is 1, X is 2 and 0 represents an empty cell). The math to get the index is similar to this:

    https://bfnightly.bracketproductions.com/chapter_3.html#building-a-simple-map

    Might be overkill for a simple tic-tac-toe game, but if you want to rotate the board or whatever, you can just change the math you do to get the index. I'm not at all a math expert, but it seems like a reasonable approach.

  • hey guys. new to Kenshi, only 40 hours in so far. I finally started an outpost. not because it's cool, but because I needed to.
  • Sounds like a good start to me. If you're not happy with the location, I think you can relocate your main base if you have the time and patience to tear everything down and store the raw materials. You're in Shek territory if you're south of the Hub so expect them to stop by to demand tribute. Which to them means forcing their way to your food storage and stealing what they can. It's probably the easiest next to UC (which just want money).

    I started my first base in Bast. Ended when I was raided by slavers (I accepted an escaped slave a few days prior).

  • Found a guy

    2