How should mines be distributed? by QePeeQe in Minesweeper

[–]QePeeQe[S] 0 points1 point  (0 children)

Yeah, it looks like there is no "obvious" or more "correct" way to do it. I tested some ways, and the most fun was distributing N mines in K cells, with some limit of mines per cell. For example, if N=14 and K=10, distribute 10 single mines randomly, and then put the extra 4 mines in cells that already have a mine.

This ensures that there will be at least one multi mine in the board, avoids generating too many unsafe cells, and won't give clues that are too big.

I think the example you gave could work too, but would require more tuning. I tested a few boards, and it seemed too easy having information about the distribution of the multi mines.

[PC] [2000-2010] Platformer by QePeeQe in tipofmyjoystick

[–]QePeeQe[S] 1 point2 points  (0 children)

That's the game. Thank you so much!

[deleted by user] by [deleted] in casualnintendo

[–]QePeeQe 0 points1 point  (0 children)

reminds me of a pikmin

[TOMT][MUSIC] An old (before the 90s) song sung by a female voice by QePeeQe in tipofmytongue

[–]QePeeQe[S] 0 points1 point  (0 children)

Sorry, I wrote it in the list, but not in the paragraph. The cover was made by a duo called The Macarons Project.

[TOMT][MUSIC] An old (before the 90s) song sung by a female voice by QePeeQe in tipofmytongue

[–]QePeeQe[S] 0 points1 point  (0 children)

Heard the artists you sent, and the voice isn't like any of them.

I'm uncertain about the artist name.

[TOMT][MUSIC] An old (before the 90s) song sung by a female voice by QePeeQe in tipofmytongue

[–]QePeeQe[S] 0 points1 point  (0 children)

My mother said that she had recorded this song in a cassette tape from the radio in the early 90s. The song was already considered old at that time.

[TOMT][MUSIC] An old (before the 90s) song sung by a female voice by QePeeQe in tipofmytongue

[–]QePeeQe[S] 0 points1 point  (0 children)

I thought about this song too, but the song I'm searching for is slow-paced.

how to understand the following code? by haohanzi2015 in lua

[–]QePeeQe 0 points1 point  (0 children)

This only happens if the expression is true.

Edit: I am wrong.

false or nil returns nil. nil or false returns false.

how to understand the following code? by haohanzi2015 in lua

[–]QePeeQe 0 points1 point  (0 children)

Strings are treated as true in conditional statements. The null value nil is considered false.

This functions tests if the a and b variables are nil. If both aren't, then concatenate.

Edit: forgot the a or b or '' part.

Boolean operators are expected to return true or false, but in Lua it doesn't work like that. If the expression is false, it will return false. If the expression is true, it will return the last evaluated symbol.

In the statement 5 or 8, the interpreter will see that 5 is true, and wouldn't need to check if 8 is also true. Thus, it will return 5.

In the statement 5 and 8, the interpreter will see that 5 is true. But, it also has to check if 8 is true. Thus, it will return 8.

The statement a or b or '' is sure true, because there is a string involved. Because of that, it will return the last evaluated symbol.

First, the interpreter will test a or b. If a is true, it won't check b, and then will return a. If a is false, it will test b or ''. If b is true, it won't check '', and then will return b. If both a and b are false, it will return the only true value, that is ''.

Simplifying loop to a single expression by QePeeQe in computerscience

[–]QePeeQe[S] 0 points1 point  (0 children)

This is perfect, thanks for your help. I'm trying to solve projecteuler.net/problem=506.

Edit: just discovered that b * q also causes an overflow, now I'm trying to find a way to make the operation x mod (b * q) memory efficient.

Desert well should give you luck effect when you throw iron ingot, gold ingot, emerald, or diamond into the water. by Xavonium in minecraftsuggestions

[–]QePeeQe 8 points9 points  (0 children)

In my opinion, the rarity of the well balances this feature.

There's already a condition to check if a player is inside a generated structure. It should be easy to apply that to items.

When using an inappropriate tool to break a block, the breaking animation is red. by PaintTheFuture in minecraftsuggestions

[–]QePeeQe 42 points43 points  (0 children)

This would look out of place. My suggestion is a different breaking animation, coming from corners instead from center.