What’s the minimum number of moves needed to win the Google snake game?
Importado el
El foro clasificaba esta pregunta como sin respuesta en la fecha de recopilación. Esto no certifica un problema abierto de investigación; consulta las respuestas y el historial de la fuente.
Los enunciados y resúmenes están en inglés. Los conceptos de apoyo y los artículos de Wikipedia disponibles en español ayudan a comprenderlos. La fuente conserva la formulación completa y el debate.
Enunciado del problema (inglés)
So I’ve been obsessing over this for a while now and could really use some help. I’m trying to figure out the minimum number of moves it would take to win the Google Snake game if you played perfectly.
Here’s the setup:
-
Grid Size: 15x17 (so, 255 squares total).
-
Rules:
-
Snake starts at a random spot with 3 blocks.
-
Apples spawn one at a time in random, unoccupied squares.
-
Eating an apple makes the snake grow by 1 block.
-
If the snake hits itself or the edge, game over
-
Objective: Fill up the whole grid (255 blocks), which means eating 252 apples (since the snake starts with 3 blocks).
-
Moves: One move = one step in any direction (up, down, left, or right).
THE QUESTION:
What’s the minimum number of moves needed to win?
The randomness of apple spawning makes this really tricky to calculate. For example:
-
If apples conveniently spawn right in front of the snake, you’d need fewer moves.
-
But if apples spawn on the other side of the grid (or in annoying spots), the snake has to take way more steps to get there.
-
On top of that, the snake grows with every apple, so avoiding collisions with yourself adds another layer of complexity.
What I’ve Tried:
I’ve been messing around with different ideas and strategies, but I keep running into dead ends. I can’t figure out how to account for the randomness of apple placement while also finding an optimal path. Some thoughts I’ve had:
-
If apples always spawned perfectly along the shortest path, you’d have a way lower move count.
-
Worst-case scenario is apples spawning as far away as possible every time, but even that’s hard to estimate.
I would love to know:
-
How you’d even begin to calculate this.
-
Any algorithms or strategies that could help.
-
If I’m overthinking this (but let’s be real, I probably am).
if anyone finds a way to solve this, a definite answer, or at least an estimate, please let me know.
Thanks, y’all! 🙌
Enunciado y contexto adaptados de MathOverflow · woodedbobolinks
CC BY-SA 4.0 · Formato adaptado; fórmulas matemáticas conservadas · Historial de la fuente
Fuentes y estado original
- MathOverflow Estado en la fuente : unanswered at collection
Última actividad en la pregunta :
Cobertura, fuentes y método
Este contador mide las fichas importadas, incluidas variantes distintas. No cuenta todas las preguntas matemáticas abiertas del mundo. Una ficha puede pertenecer a varias áreas y fuentes.
El repertorio no es exhaustivo ni se actualiza en tiempo real. « Abierto según la fuente » describe la clasificación observada al importar; no se ha verificado independientemente cada ficha importada. Las 32 fichas explicadas se revisaron por separado.
Formal Conjectures: se conservan solo enunciados « research open » sin prueba formal indicada; se comprueba su etiqueta en una versión concreta del repositorio. Las variantes siguen separadas. Un « sorry » no basta para establecer que el problema sigue abierto.
Erdős: se excluyen problemas resueltos, independientes o con una solución Lean, incluidos los « open (Lean) ». Se fusionan las coincidencias exactas con los enunciados principales de Formal Conjectures.
Open Problem Garden: se contrasta el índice abierto con el de resueltos; se excluyen spam, copias identificadas y algunos estados obsoletos. Los enunciados y sus definiciones se atribuyen a las páginas originales; se conservan las fórmulas y el contenido sigue bajo la GFDL. Se agrupan los duplicados reconocidos, sin resolver todas las equivalencias matemáticas.
OEIS: extracción directa de comentarios y fórmulas conjeturales, una ficha por sucesión, excluyendo resoluciones mencionadas. MathOverflow y Math Stack Exchange: preguntas clasificadas sin respuesta por su API, excluyendo publicaciones cerradas y categorías ajenas a la investigación. Se distinguen de los problemas señalados como abiertos. La colección es parcial y fechada; cada ficha atribuye autores y licencia.
Las exclusiones documentadas tienen en cuenta anuncios recientes y estados contradictorios. Una variante más fuerte o un caso particular puede seguir abierto tras resolverse otro enunciado.
Atribución: The Formal Conjectures Authors; teorth/erdosproblems y sus colaboradores; Open Problem Garden y sus colaboradores. Cada fuente conserva su licencia.
- Formal Conjectures · 1924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18.857 · CC BY-SA 4.0
- MathOverflow · 19.035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)