House will just do both at once.
- 1 Post
- 14 Comments
Little People
Counterpoint: it’s indispensable and nothing really fills the same niche.
Software was a mistake
Mod of SA maybe
akd@lemm.eeto
Rust@programming.dev•What is the best memory model for a Tic Tac Toe grid? (References and ownership)
5·3 年前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.
akd@lemm.eeto
Rust@programming.dev•What is the best memory model for a Tic Tac Toe grid? (References and ownership)
91·3 年前A simple vector seems fine. Each item in the vector is an enum representing cell state. You can translate x y coordinates to an index pretty easily.
Idk The Bear is very good. Might be worth it.
My initials if my middle name were Keith
akd@lemm.eeto
World News@lemmy.world•New Zealand bans plastic bags for fresh produce in supermarketsEnglish
2·3 年前Nah. Don’t want loose produce rattling around my cart. I’m OK with reusable shopping bags, but let me keep the plastic sacks for produce TIA








IANAL but this seems stupid to try in court assuming the footage is under good chain of custody.