Optimizing Puzzle Solutions through Grid Simulation

  • Context: Undergrad 
  • Thread starter Thread starter barwick11
  • Start date Start date
  • Tags Tags
    Grid Simulation
Click For Summary

Discussion Overview

The discussion revolves around a puzzle involving a 9x9 grid where squares can be turned "off" or "on" under specific rules. Participants explore the mechanics of the puzzle, seek simulation tools, and consider programming solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes a puzzle where the goal is to turn the top right square "on" while starting with the center squares "on" and the rest "off".
  • Another participant suggests writing a Python script to create a grid simulation, proposing a wxPython front end for graphical representation.
  • A different participant expresses uncertainty about programming in Python but mentions the possibility of using another language.
  • One participant draws a parallel between the puzzle and Conway's Game of Life, suggesting that existing code for that game might be applicable.
  • A later reply indicates that a solution was found involving a "glider".
  • Another participant inquires about the origin of the question, seeking context for the discussion.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to simulate the puzzle or the specific rules governing it. Multiple viewpoints on programming solutions and puzzle mechanics are presented.

Contextual Notes

There is uncertainty regarding the specific rules of the puzzle and how they govern the evolution of the grid. The discussion also reflects varying levels of programming experience among participants.

Who May Find This Useful

Individuals interested in grid-based puzzles, programming simulations, or those exploring concepts related to cellular automata may find this discussion relevant.

barwick11
Messages
3
Reaction score
0
"Evolving grid" simulation?

I'm not quite sure what to call this problem, but basically, I am trying to solve a puzzle. It works as follows:

  • There is a 9x9 grid
  • Each square can either be "on" or "off"
  • At the beginning of the puzzle, the 9 squares dead center of the grid are "on", the rest are "off"
  • The object of the puzzle is to get the top right square "on", it doesn't matter what the other ones are at that point, as soon as it turns "on", puzzle solved
  • You can only turn a square "off", you cannot turn one on.
  • Prior to "starting" the puzzle, you can turn off as many of the original 9 squares you want.
  • Every second (or so), another "evolution" happens in the puzzle, turning some squares on, others off. While this is happening, you can turn squares off, but due to time constraints, you really can only turn off *maybe* one square per evolution. It could be possible to turn off more, but it's not that likely.

So basically, there are obviously rules that govern what happens with each "evolution". I'm about 95% sure that those rules are constant throughout the whole puzzle, so no worries there. I don't exactly know what those rules are, but I've got a pretty good idea.

My big question is, do you guys know of a grid simulation program or something (almost like an othello grid that I can just customize somehow), that I can use to determine the rules behind the puzzle as I play it, and then to simulate the fastest possible solution to the puzzle?
 
Mathematics news on Phys.org


barwick11 said:
My big question is, do you guys know of a grid simulation program or something (almost like an othello grid that I can just customize somehow), that I can use to determine the rules behind the puzzle as I play it, and then to simulate the fastest possible solution to the puzzle?

Write one yourself. It shouldn't be hard. Throw together a Python script. You could even set it up with a wxPython front end to display the graphics using the number pad to turn squares off.
 


I've never written anything in python... I could probably write it up in another language, but I thought something out there would already exist that does something like this
 


barwick11 said:
I've never written anything in python... I could probably write it up in another language, but I thought something out there would already exist that does something like this
Is this a modified form of Conway's Game of Life? It sounds really similar, and there's already lots of code out there for that. (Even the wiki page has animations.)
 
Last edited:


sweet, that was it, solution was a glider :)
 


Just curious, what brought this question on?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 13 ·
Replies
13
Views
13K
  • · Replies 2 ·
Replies
2
Views
2K