itch.io is community of indie game creators and players

Devlogs

Version 1.1

Anarkhos2's Minesweeper
A downloadable game for Windows and Linux

(English: ) Changes from version 1.0 to version 1.1

  • Game now checks for invalid imputs at the lenguage menu

In 1.0, typing any value in the lenguage menu that isn't 0 or 1 would result in the game running without any texts on the screen. Now with this update, typing any value that isn't 0 or 1 in the lenguage menu will return you to the lenguage menu to try again.

  • Improved seed system (no more annoying invalid seed bullshit)

Originally, the game had a minimum of 8 digits for a seed. However, since the game stored the seed in a 32bit varaible, any seed higher than 2.14 billion (which has 10 digits)  would turn into a negative seed, resulting on the game thinking you typed in a seed with less than 8 digits. 

Since the minimum size for a seed and the maximum size for a seed were so close to each other, mashing numbers on your keyboard to get a seed could often result in the game saying you gave an invalid seed,  which is annoying, so I decided to rework how the game checks for seeds.

Since the game only uses the first 21 bits of the seed to generate boards, I decided to make it so the only valid seed values were from 0 to 21bit (or 2.07 million). However, instead of the game bitching with that "Oops, invalid seed!" response when you gave the game a number outside of that range, now the game will increment/decrement 2.07 million (or 21bit) from your seed value until it results in a valid number. 

Technically speaking, the game can run any seed in the board generator as long as it's not a negative number, however all seeds higher than 2.07 million (or 21bit) result in an indentical output to another seed below 2.07 million. For example, the seed 21bit+67 would give out the same board as the seed 67.

Therefore, this new system just takes whatever seed you give it and turn it to something simpler that gives the same output, kind of standardizing seed values. To check what value the game found for your seed, just look at the "GAME:XXXXXX" at the top of the board.

(Português: ) Mudanças da versão 1.0 para a versão 1.1

  • O jogo agora checa para números inválidos no menu de idioma.

Na 1.0, digitar qualquer valor que não fosse 0 ou 1 no menu de idioma resultava no jogo rodando sem mostrar nenhum texto na tela. Agora com esse update, digitar qualquer valor além de 0 ou 1 te retornará para o menu de linguagem para tentar novamente.

  • Sistema de seed melhorado (seed inválida é o caralho)

Originalmente, o jogo tinha um mínimo de 8 dígitos para a seed. Porém, como a seed era armazenada em 32bits, qualquer seed maior que 2.14 bilhões (que tem 10 dígitos) virava uma seed negativa, resultando no jogo pensando que você colocou uma seed menor que 8 dígitos.

Como o valor mínimo e o valor máximo de uma seed são muto próximos, spammar os números no seu teclado para criar uma seed frequentemente resultava no jogo dizendo que você deu uma seed inválida, o quê é chato, então decidi refazer como o jogo checa as seeds.

Como o jogo só usa os primeiros 21 bits da seed para gerar um tabuleiro, decidi fazer com que as únicas seeds válidas fossem entre 0 e 21bit (ou 2.07 milhões). Porém, ao invés do jogo encher a porra do saco com aquela mensagem de "Oops! Seed inválida" quando a sua seed não está dentro desses valores, agora o jogo adiciona/subtrai 2.07 milhões do valor da seed (ou 21bit) até que o valor seja válido.

Tecnicamente falando, o jogo pode rodar qualquer seed desde que não seja negativa, porém qualquer seed maior que 2.07 milhões (ou 21bit) resulta num tabuleiro idêntico a alguma outra seed menor que 2.07 milhões. Por exemplo, a seed 21bit+67 daria o mesmo tabuleiro que a seed 67.

Logo, esse novo sistema só pega qualquer seed que você der e retorna uma seed mais simples que dá o mesmo tabuleiro, meio que padronizando as seeds. Para ver o novo valor que o jogo encontrou para sua seed, apenas veja qual valor ele te deu no "JOGO:XXXXXXX" encima do tabuleiro.

Files

  • minesweeper 1.1 files.zip 25 kB
    31 days ago
Download Anarkhos2's Minesweeper
Leave a comment