Skip to content

A Python implementation of the game, showcasing the power of pair programming and collaboration ๐ŸŽฒ๐Ÿงฉ @recursecenter

Notifications You must be signed in to change notification settings

bdelanghe/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฒ๐Ÿ’ป Conway's Game of Life: A Pair Programming Adventure at Recurse Center ๐Ÿš€๐ŸŽ‰

๐Ÿ“š Introduction ๐Ÿ“š

Hello, and welcome to our implementation of Conway's Game of Life! This project is a special one. Why? Because it's not just a story about cells living and dying on a grid, it's also a testament to the power of collaboration and the value of pair programming. This journey was shared with my amazing partner, @jelenalor.

๐Ÿ‘ซ The Power of Pair Programming ๐Ÿ’ก

Pair programming is a collaborative approach where two programmers share a single workstation (one screen, one keyboard, and one mouse). This project has shown us the significant benefits of such a collaborative approach:

  • Problem-solving: Two heads are better than one! By working together, we were able to generate diverse solutions and tackle more complex problems.
  • Knowledge sharing: We learned from each other! It's amazing how different perspectives can enhance understanding and mastery of concepts.
  • Code quality: Through instant code reviews, we ensured that the code we produced is cleaner, simpler, and less prone to errors.

๐ŸŽฒ The Game of Life ๐Ÿš€

Conway's Game of Life is a cellular automaton invented by John Horton Conway. This game is an excellent case study for exploring the fundamental concepts of computer science and software engineering. The World class represents the current state of the game, while the Rules class encodes the rules of life and death.

world = World(4)
world.grid = 5
print(world)

In the code snippet above, we create a 4x4 world and kickstart life with 5 randomly placed live cells.

๐ŸŽฎ The Play Class and Session Class ๐ŸŽฎ

The Play and Session classes bring the game to life! Play extends Python's Cmd class, providing a text-based command line interface for interaction, while Session stores the game's progress to allow for game control functions such as pause, resume, and review.


๐ŸŒ External Resources ๐ŸŒ


๐Ÿ˜… Conclusion ๐Ÿ˜…

Our journey through Conway's Game of Life was more than just a coding project; it was an enriching experience of collaborative learning and problem-solving through pair programming. Special thanks to @jelenalor for being an exceptional partner in this adventure. We hope this project inspires you to explore pair programming and to find joy in coding collaboration. Happy coding! ๐ŸŒŒ๐ŸŽฒ๐Ÿš€๐Ÿ’ป๐ŸŽ‰

About

A Python implementation of the game, showcasing the power of pair programming and collaboration ๐ŸŽฒ๐Ÿงฉ @recursecenter

Resources

Stars

Watchers

Forks

Languages