Great Big House in New Orleans
Note: This post has many errors and omissions. See this 2024 post for an update.
When I was a student at Scottish Corners Elementary School, we occasionally played a game in our weekly music class with Miss Bowman called Great Big House in New Orleans. In this game, all of the students in the class sat in a circle. One student – the student at position 1 – held a small stuffed pumpkin. While singing the following song, we passed the pumpkin around the circle.
Great big house in New Orleans,The purpose of this exercise was to teach elementary school students about rhythm. As a rule, the pumpkin has to be passed to the next student on every beat of the song. A student can't ignore the rhythm of the song and pass the ball offbeat (i.e. too quickly or too slowly). The pumpkin has to be passed on the beat. Whoever has the pumpkin when the song reaches the word high and the word pie is out of the game and exits the circle.
Forty stories high,
Every room that I've been in,
Filled with pumpkin pie.
For those of you musically inclined readers, here's a quick score I whipped up:
For those of you who don't know how to read music, I've marked where the beats are with arrows. Every time the song reaches an arrow, the student who has the pumpkin would pass it to the next student in the circle. If the arrow is blue, the student who receives the pumpkin remains in the circle; if the arrow is red, the student exits the circle. We keep repeating the song and passing the pumpkin until there is only one person left in the circle. For beginners, we kept the same slow tempo throughout the course of the game, but for experienced players, we started speeding up the tempo with each iteration of the song. Changes in tempo do not affect who eventually wins, however, if the rules are carefully followed. Whoever won the game usually received some sort of prize, like candy or a "B.U.G." (Being Unusually Good) award, which was a coveted slip of orange paper with your name on it that you could show off to your friends and family.
Contents
- Background
- The New Orleans Solver
- Setting up the array
- Initializing variables
- Checking whether the game is over
- Finding the next student to get up
- Wrapping it up
- Analysis
- XlsxWriter
- The 8-run: dependence of winning position on class size
- 8-run starting points: creating formulas for class sizes ≥ 30
- Special case: if the starting point is (c0, 1)
- Extending the 8-run to all class sizes: "just add 8"
- Conclusion
This blog post is dedicated to my elementary school music teacher, Jenny Bowman.
Background
In fourth grade, my friend Guozhen realized that the rules of Great Big House in New Orleans predetermine the winner, and he was the first and only one in our class to be able to exploit that. (We were 10 or 11 years old at the time.) At its core, the rules are simply that we eliminate every eighth person in a group, and whenever we reach the last person in the group, we continue the count from the first person in the group. As long you know how many people are playing, you are able to figure out exactly where you need to sit in order to win. And that was exactly what he did! He started winning the game every time we played it. The only skill involved in the game is mathematical skill: the ability to determine exactly where you need to sit in order to be the last one still in the circle.Before we discuss further, I noticed an interesting detail that affected outcome of the game as I was reminiscing on it with my sister over this past summer. For the purposes of this post, I will assume that at the very start of the game, the pumpkin is passed to the student at position 2. In other words, the student at position 2 is the one who first sings "Great big...", and position 9 will be the first to get out (if there are at least 9 students playing). Another way to play the game is to have the person who starts with the pumpkin also be the first to sing "Great big...", resulting in position 8 getting out first. That version won't be discussed in this post, though with a few tweaks in your logic, you could adjust for that too given what I write in this post.
Consider a class size of ten students. The ball gets passed, and when the ninth student says the -gh of high, that student exits the circle. If we label each student as student 1, student 2, etc. We get a game that looks like this:
- [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] - student 9 gets out
- [1, 2, 3, 4, 5, 6, 7, 8, 10] - student 7 gets out
- [1, 2, 3, 4, 5, 6, 8, 10] - student 6 gets out
- [1, 2, 3, 4, 5, 8, 10] - student 8 gets out
- [1, 2, 3, 4, 5, 10] - student 1 gets out
- [2, 3, 4, 5, 10] - student 4 gets out
- [2, 3, 5, 10] - student 3 gets out
- [2, 5, 10] - student 10 gets out
- [2, 5] - student 5 gets out
- [2] - student 2 wins
As you can see, in a class of 10 students, the student who sits in position 2 will win invariably. We've just run through the game in our heads, and we found that this happens. Is there a discernable pattern here? It seems that the most straightforward way to "solve" the game is to simply simulate it.
While my sister and I were in Grand Teton National Park in Wyoming this past summer, we were staying inside of a small little cabin. Night had fallen, and we were winding down from a busy day of driving, taking pictures, and having fun. Bored, I booted up my laptop, but alas, Wi-Fi isn't really a thing in a national park (and it shouldn't be!). That was okay, however, because you don't need to have Internet to write a computer program.
The New Orleans Solver
My sister and I reminisced on our time at Scottish Corners, and the subject of Great Big House in New Orleans came up, and I fondly recalled Guozhen always figuring out in his head where he needed to sit in order to win. Having taken CSE 1223 (Introduction to Computer Programming in Java) at The Ohio State University in the fall of 2016, I realized that I could write code for a program that would allow a computer to run a simulation of Great Big House in New Orleans. We would give this program an arbitrary class size, and it would output the exact position you needed to sit in order to win.I originally wrote the program in the Java programming language, since that was the only language I was familiar with at the time thanks to CSE 1223 at Ohio State. Nowadays, however, I'm at the University of California, Berkeley, and since for spring 2018 I'm planning to take the course CS 61a (Structure and Interpretation of Computer Programs), which primarily uses the programming language Python, over the past few days I took the Java code I wrote in Grand Teton National Park and translated it into Python code with the help of my roommate Teemu, who is currently taking a Python-related physics course for his first fall semester here at Berkeley. During the translation process, I made a few adjustments and improvements to the program to adapt it to Python.
I'm not too familiar with Python yet (and heck, I really only have an elementary understanding of Java too), so for those of you more technically inclined readers, if you spot anything in my code that you think I can improve, feel free to let me know! I'll discuss both my Java and Python implementations here. For those of you who don't know how to read code, I'll try to explain what I'm doing in each step, though I apologize if it gets too technical. Later in the post I'll discuss patterns in the results of the program up to class sizes of 1000, so it won't just be geeky codetalk from here on out.
Setting up the array
In Java, I started by creating an array of integers that labelled each student 1, 2, 3, 4, etc. The setup looked like this:
int[] classArray = new int[classSize];
for (int i = 0; i < classArray.length; i++) {
classArray[i] = i + 1;
}
The integer variable classSize is user-inputted. If the user inputs a class size of 10, this code would then create the following array of integers:[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]Look familiar? Each element in this array represents a single student, labelled by their initial starting position. The word class here refers to an elementary school class, not a class within Java.
In Python, arrays are called lists. (Java also has ArrayLists, which have more similar functionality to Python's lists, but I opted to use regular arrays in my Java program because apparently they're more efficient, though admittedly at this sort of elementary-level programming, efficiency doesn't matter that much.) Here's the Python setup:
Given a user-inputted class_size of 10, this also created a list of integers that looked like this:class_array = [] for i in range(class_size): class_array.append(i + 1)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]So far, the result is the same as the Java. They key difference is that in Java, arrays have a fixed length. You cannot change the length of an array once you declare it to be a certain length. In Python, however, lists are dynamic, meaning you are able to change the length of the lists by directly adding and removing elements. In the Java implementation, I first created an empty array of size 10, then filled that array with 10 consecutive integers. In the Python implementation, I first created an empty list, then I directly added new elements to that list until I had the 10 consecutive integers. For the Java, think of it like me creating a checklist of size 10 by first drawing 10 boxes and then writing labels next to the boxes. For the Python, think of it like me drawing the boxes as I write the labels next to them.
Initializing variables
I then initialized a new integer variable called currentStudent in Java and, since Python is apparently opposed by convention to CamelCase, current_student in Python. The purpose of this variable is to indicate which student currently has the pumpkin. To start the game, the person at position 1 starts with the pumpkin, so the variable is initialized to 1:Java: int currentStudent = 1;Next, I initialized an integer variable called studentOut (student_out in Python). This variable will be filled with the position of the next student to get out, wherever we are in the game. For now, I just initialized it to 0. I realize there is no student labelled 0; don't worry, this is just a placeholder to start the program with. The 0 will soon be replaced with the true next student to get out (spoiler: for a class size of 10, it's 9).
Python: current_student = 1
Java: int studentOut = 0;
Python: student_out = 0
Checking whether the game is over
The game is over when there is only one student left in the circle. Every time I the pumpkin gets passed around and gets someone out, I have to check whether the game is over – that way, the program can end. To accomplish this, I set up a function called isGameOver(int[] theClass), which takes in the parameter theClass, which is the array of integers that represents our class.In the Java implementation, since the arrays have fixed lengths, whenever a student got out, I switched their number to 0. So since student 9 is the first to get out in a class size of 10, the array should look like [1, 2, 3, 4, 5, 6, 7, 8, 0, 10] after student 9 gets out. The function isGameOver checks the array to see whether it contains exactly one nonzero integer (i.e. one student still in). If the array does contain exactly one nonzero integer, the function returns true, meaning the game is indeed over. If not, the function returns false. Here's a screenshot of this Java method:
In the Python implementation, since lists are dynamic, I was able to remove students directly from the list, rather than deal with the hassle of switching the students who are out to 0. As a result, for my Python function is_game_over(the_class), I merely needed to check whether the length of the list the_class (i.e. the group of students still in the game) was equal to 1. If it was equal to 1, then I returned True, since the game is over when only 1 student is still in the game. Anything other than 1, it returns False. A screenshot of my implementation:
Finding the next student to get out
Now we enter the heart of the program. I needed to create a loop that would iterate through each student, as if it were passing the pumpkin to each student, and finding exactly which students would get out. The loop should stop once the game is over (i.e. once only one student remains in the game) – that's exactly the function we just discussed, so the condition to enter the loop is, in Java:while (!isGameOver(classArray)) {The exclamation point (!) in computer science means not. We can thus read this line intuitively as: while the game is not over, execute the following actions. In other words, while the function isGameOver does not evaluate to true, execute the following actions. The Python line looks like:
while not is_game_over(class_array):I now need a set of two functions that will constitute the core of the program. The first function is called nextStudent(int[] theClass, int current), and as you can see, it takes in as parameters our integer array theClass and the integer current, which is the student who currently has the ball (we'll pass the variable currentStudent into this function when we call it). The function advances through our integer array and returns the next student to receive the ball on the beat. In the Java implementation, I take the student who currently has the ball and find the next nonzero student (i.e. the next student that is still in). If there are no nonzero students remaining in the array, I return back to the first student in the array and advance from there.
The second function uses nextStudent find the next student to get out. I named it nextOut(int[] theClass, int current). The rules of the game are such that every eighth person gets out, so I simply use nextStudent eight times and return the student I end up on.
The Python implementation is far simpler because I don't have to check whether the next student is zero or not: once a person gets out, in the eyes of the Python program they are no longer a student in the class anymore. Harsh, but such makes the whole next_student function significantly simpler. The only thing I have to account for is if the pumpkin is currently at the last student in the list, the list jumps back the first student in the list. After that, for next_out I can simply call next_student 8 times and voila, I get the next student to get out.
It's important to realize in the Python implementation that the variables student and current refer to the index of that student within the list the_class, not the original starting position of that student. This can be a little confusing the grasp at first (as it was for me). Think of it like this: at the start of the game, we label the student at position 1 "student 1" and the student at position 2 "student 2". If student 1 gets out, that causes student 2 to now occupy position 1. In these functions, we only care about the positions that the students occupy within the current circle, not at the start of the game.
To add further confusion, in Python, the "index" of the list is the technical term for the position of an element within the list. List indexing in Python starts at 0, not 1; in other words, the first student is at position 0 in the eyes of the Python programming language, not 1. I apologize for this confusion, as I understand it's totally avoidable. That'll probably be something in the code I can improve on if I ever come back to this project in the future.
Wrapping it up
We now have all the critical ingredients we need to simulate a game of Great Big House in New Orleans given an arbitrary class size. Here are my main methods in Java and Python. There are some extra functions/procedures in there that grab user input, handle errors, print instructions, and allow the user to "play again" and input a different class size. I haven't discussed those methods, but hopefully you can see the gist of how the program works.![]() |
| Java |
![]() |
| Python |
Analysis
XlsxWriter
And now for the really interesting part. With the help of my roommate Teemu and the Python module XlsxWriter, I modified my Python code to have it export the results of the first 1000 class sizes into an Excel spreadsheet. Just to give you perspective on what the computer is doing, it is first simulating a game with an elementary school class of 3 students, then outputting the winner into an Excel file. It then simulates a game with a class of 4 students, then outputs the winner of that game into the same Excel file. It does this for classes of 5, 6, 7, 8, all the way up to classes of 1000 students.Why 1000 students? Well, it's a nice round number. Actually, it's to try to find a discernable pattern in the winner of each game given class size. I wanted to see if there was an easier way to mathematically find the winner of a game given class size without having to simulate a whole game, and it's easier to identify patterns when you have more data. Moreover, it's just fun to imagine having extremely large games and knowing exactly how to predict their outcomes.
The 8-run: dependence of winning position on class size
The data generated by the program is beautiful to me. This was the first time that I ever wrote a program that could generate data, and seeing the data form into coherent patterns just rendered me awestruck.
Before deciding on running the program up to class sizes of 1000, Teemu and I focused only on the first 100 class sizes. A typical elementary school class is about 30 students or less, and interestingly, with class sizes of less than 30 there doesn't seem to be a blatant pattern to the results:
![]() |
| Note: There is a typo in the title of this graph. The class sizes range from 2 to 30, not 3 to 30. |
However, once we started looking at larger class sizes, we noticed a striking pattern.
Every time you added 1 student to the class size, the winning position shifts by 8. This went on until shifting by eight would take you to beyond the size of the class, in which case, it reset to a number less than 8 and restarted the pattern (we'll discuss these "starting points" shortly). We called these "8-runs", and once we identified this pattern at large class sizes, we returned to the smaller class sizes and found a few of these 8-runs there too (these smaller 8-runs will become important toward the end of this blog post!).
![]() |
| Red arrows indicate differences of 8 between consecutive winning positions – the "8-runs" |
However, for class sizes larger than 30, we found that the 8-run pattern held true consistently, without deviation.
In the figure above, all of the dots after class size 30 are 8-runs; that is, the difference between consecutive winning positions is always 8, except for when a difference of 8 would take you above the class size. When we plotted the winning position against all class sizes up to 1000, the pattern of the 8-runs became extremely evident.
The 8-runs at this scale look almost like a solid line, making this figure look almost like a bar graph with the bars slanted. Don't be fooled: this is a scatterplot with 1000 data points. The slope of each of those slanted lines is precisely 8 for all class sizes ≥30.
In the figure above, all of the dots after class size 30 are 8-runs; that is, the difference between consecutive winning positions is always 8, except for when a difference of 8 would take you above the class size. When we plotted the winning position against all class sizes up to 1000, the pattern of the 8-runs became extremely evident.
The 8-runs at this scale look almost like a solid line, making this figure look almost like a bar graph with the bars slanted. Don't be fooled: this is a scatterplot with 1000 data points. The slope of each of those slanted lines is precisely 8 for all class sizes ≥30.
8-run starting points: creating formulas for class sizes ≥ 30
A consequence of identifying this pattern of 8-runs is that the pattern allows us to create formulas for the winning position given two things: your class size and the starting point of the 8-run that the class size is in. The starting point of the 8-run has two components and can be represented by the ordered pair (c0, w0). c0 is the class size that the 8-run starts on, and w0 is the winning position of the class size c0. The formula takes the following form:
For class sizes c ≥ 30, your winning position w is:For example, the first 8-run starts from class size 30 and goes up to and including class size 34. The winning position for class size 30 is 2 (found by simulating a game), so our (c0, w0) pair is (30, 2) for this particular 8-run. Plugging these values into the general formula:
w = 8(c - c0) + w0
c0 is the class size that the 8-run which c is in starts on, and w0 is the winning position of the class size c0.
For 30 ≤ c ≤ 34,Once again, this formula only holds true for five class sizes: 30, 31, 32, 33, and 34. At first glance, it seems that the power of these formulas are limited. After all, what good is a formula if it only holds true for 5 cases? However, with one interesting trick, we can make these formulas pretty useful. Right now, we know the formula for the 8-run for class sizes from 30 to 34, but we don't know what the formula is for class sizes starting from 35 because we don't know the starting point of the class at 35. We'd have to simulate a game to find the starting point... or do we?
w = 8(c - 30) + 2
where w is your winning position given a class size c.
To find the starting point of the next 8-run, we take the formula of our current 8-run, in this case w = 8(c - 30) + 2 and we plug in the next class size that's just beyond the domain of this 8-run, in this case a class size of 35. Substituting c = 35 in w = 8(c - 30) + 2 yields w = 42. Note, however, that this winning position is greater than the size of our class 35. To find the actual winning position, simply subtract the class size c from the w value you got: 42 - 35 = 7. Lo and behold, if you run a simulation of a game with a class size of 35, the student at position 7 will win.
Note that this is the equivalent of simply taking your previous winning position and adding 8, then subtracting by your target class size. In this case, position 34 wins for a class of size 34, so adding 8 to your previous winning position 34 gives you 42, which is greater than your target class size of 35. Subtracting 35 from 42 then gives you 7, which is the position that wins. I call this simplified procedure "just add 8", and it'll play an important role for class sizes less than 30 (see section "Extending the 8-run to all class sizes").
We can then use this information to create the formula for the next 8-run, since we know our (c0, w0) pair is (35, 7): w = 8(c - 35) + 7. This formula holds true until w > c. In this case, when c = 40, w = 47. Thus, this new formula holds true for 35 ≤ c ≤ 39. A major consequence of this is that as long as you know the starting position of any one 8-run, you can deduce the starting positions (and, by extension, the formulas) for all other 8-runs without having to simulate a single game in your head. This is extremely useful for games played by very large classes, since the length of the 8-runs increases with each successive 8-run. For example, there is a single, continuous 8-run between a class of size 977 and a class of 1116, inclusive. Therefore, the formula w = 8(c - 977) + 2 holds true for all class sizes between 977 and 1116, inclusive: that's 140 class sizes for which the formula is valid. Now imagine trying to play a game with this number of students. If you don't have a computer handy, a simulation would be tedious to do by hand. It is easier to find the 8-run formula than to simulate the game.
Special case: if the starting point is (c0, 1)
So far, when creating these formulas, we've restricted ourselves to class sizes greater than or equal to 30. This isn't very practical because elementary school class sizes are typically less than 30. When we consider one interesting exception to the 8-runs, however, we can actually extend the 8-run rules to all class sizes. The exception is the special case when the student at position 1 wins (i.e. starting points with the pair (c0, 1)). In the rare event that this occurs, the next winning position is 8, not 9. After this brief "7-run", the 8-runs continue: the next winning position would be 16, and so on.
With this in mind, if we reexamine our winning positions plot for class sizes 2-30, we can identify three such instances of the "7-run", shown in the figure below with blue arrows. (8-runs are still shown with red arrows.) Suddenly, it appears that all class sizes obey the formula rules we just described.
The reason that this apparent anomaly occurs is because position 9 never wins. It doesn't matter how big or how small your class size is, if there is a position 9, you should avoid it at all costs. Think about it: the pumpkin is always starting at position 1, gets passed 8 times until it lands at position 9. As long as the class is large enough to have a position 9, position 9 will always be the first student to get out. As a result, when the starting point of an 8-run has a winning position of position 1, the next winning position should be position 9, but since position 9 always gets out first, we deliver the victory one to the left: position 8.
This special case occurs rarely. As far as the first 1117 class sizes go, this special case only occurs four times, all of which are when c0 is less than 30:
- (3, 1)
- (13, 1)
- (15, 1)
- (26, 1)
These are all of the special cases I found up to class size 1117. An interesting challenge would be to find another instance where the student at position 1 wins when the class size is greater than 1117.
Extending the 8-run to all class sizes: "just add 8"
Once we realize this special case, we can expand the 8-run rules we developed for class sizes greater than 30 to all class sizes.
Let's begin with the smallest class size possible: 2. This game is the easiest game of all to simulate, and it is the only game we need to simulate. With our formula rules, other games can be deduced mathematically. The winning position for a class size of 2 is position 2 – meaning our (c0, w0) pair is (2, 2). Now, applying our w = 8(c - c0) + w0 formula gives us:
Bells and whistles should be going off; we have an instance of our special case (c0, 1) at (3, 1). As a result, to get the winning position for the next class size, we need to add 7 instead of 8. Adding 7 to position 1 yields position 8 as the winning position for a class size of 4, but since 8 is larger than our class size, we subtract by the class size until we get a position that is less than or equal to the class size: 8 - 4 = 4. Thus, position 4 should win with a class size of 4, and indeed, it does.
To find the next size, we can again follow the normal procedure: just add 8, then subtract by our target class size if the result is greater than it. To find the winning position for a class size of 5, first add 8 to our previous winning position of 4: 8 + 4 = 12. Now, subtract by our class size repeatedly until we find a position that is less than or equal to our class size: 12 - 5 = 7, 7 - 5 = 2. Therefore, 2 is the winning position for a class size of 5.
You can continue this procedure indefinitely until you arrive at your desired class size. To shorten your work, you can memorize easier starting points, such as (10, 2), (15, 1), (20, 2), (26, 1), and (30, 2). However, the only starting point you need to memorize is (2, 2). Moreover, given any arbitrary pair of class size and winning position, you can mathematically deduce the winning position for every other class size. In other words, by simulating one game, you've found the winning positions for all others.
Let's begin with the smallest class size possible: 2. This game is the easiest game of all to simulate, and it is the only game we need to simulate. With our formula rules, other games can be deduced mathematically. The winning position for a class size of 2 is position 2 – meaning our (c0, w0) pair is (2, 2). Now, applying our w = 8(c - c0) + w0 formula gives us:
w = 8(c - 2) + 2To find the winner of a class size of 3, substitute 3 for c in this equation, which yields 10. More simply, we can just add 8 to our previous winning position of 2 for a class size of 2 to also yield 10, the winning position for the next class size. Because we are now dealing with small class sizes, adding 8 to each winning position will almost always take us above the size of the next class, so it is unnecessary to set up formulas each time. Just add 8. Since 10 here is larger than our class size, we subtract our class size: 10 - 3 = 7. Since 7, however, is still greater than our class size, we continue to subtract 3 until we arrive at a number that is less than or equal to our class size: 7 - 3 = 4. 4 is still greater than 3, so 4 - 3 = 1. 1 is less than our class size; therefore, the winning position for a game with a class size of 3 is position 1. Furthermore, this is also the (c0, w0) pair for the next for the next formula: (3, 1).
Bells and whistles should be going off; we have an instance of our special case (c0, 1) at (3, 1). As a result, to get the winning position for the next class size, we need to add 7 instead of 8. Adding 7 to position 1 yields position 8 as the winning position for a class size of 4, but since 8 is larger than our class size, we subtract by the class size until we get a position that is less than or equal to the class size: 8 - 4 = 4. Thus, position 4 should win with a class size of 4, and indeed, it does.
To find the next size, we can again follow the normal procedure: just add 8, then subtract by our target class size if the result is greater than it. To find the winning position for a class size of 5, first add 8 to our previous winning position of 4: 8 + 4 = 12. Now, subtract by our class size repeatedly until we find a position that is less than or equal to our class size: 12 - 5 = 7, 7 - 5 = 2. Therefore, 2 is the winning position for a class size of 5.
You can continue this procedure indefinitely until you arrive at your desired class size. To shorten your work, you can memorize easier starting points, such as (10, 2), (15, 1), (20, 2), (26, 1), and (30, 2). However, the only starting point you need to memorize is (2, 2). Moreover, given any arbitrary pair of class size and winning position, you can mathematically deduce the winning position for every other class size. In other words, by simulating one game, you've found the winning positions for all others.
Conclusion
This has been an immensely fun blog post to write. This post is, if I recall correctly, the first time I've written about computer science on this blog – computer science is a field I'm super interested in, and it's one of the options I'm seriously intending to major in here at Berkeley. This post was also fun because it combined computer science with music, mathematics, and a bit of personal nostalgia. If I could go back in time and talk to my fourth grade self, this would be among the things I'd tell him! Here's a mathematical procedure that is sure to give you your winning position without having to simulate a single game (as long as you accept the starting point (2, 2) as a given). Even if he's not interested in the math procedure, here's also a nifty computer program that can run simulations of the game for you. I sure wish I had access to this program during music class each day.
One interesting step that I could do to build upon my work would be to rewrite my program to use the "just add 8" procedure starting from various known starting points, instead of having to simulate each game. Simulating games works fairly quickly for typical class sizes, but once we get into class sizes of thousands or tens of thousands, the computer starts to lag and take up processing time. By coding the formulaic procedure directly into the program, we may be able to shorten processing times and easily be able to calculate the winning positions for games with class sizes of millions! What if the whole world got together and played Great Big House in New Orleans? All 7 billion of us. Which position would win then?
Update: A few days after I published this post, I went ahead an rewrote the program to use the "just add 8" procedure. I wrote about my improvements in this follow-up blog post. Check it out!
Update: A few days after I published this post, I went ahead an rewrote the program to use the "just add 8" procedure. I wrote about my improvements in this follow-up blog post. Check it out!












