Qwixx project - v2 prep

May 10, 2025 - Reading time: 2 minutes

It's been a few weeks I'm working on Qwixx V2. Version 2 aims to handle multiple players on client side (and resolve V1 remaining issues). I focused on grid generation and creating simple rules, the occasion of refactoring some parts of the existing code. That went relatively fine but...

But

But then I felt overwhelmed by the task of switching to multiple grid management. I had to change a lot of things in the same time, debugging was going to be a nightmare and I did not want to ruin what I've done so far. Up until now I forced myself not to start all over again, because in a real-world project, you wouldn't have time or budget for that and you would have to work with legacy code. I actually have reconsidered this personal guideline, for several reasons:

  • I think I made a lot of progress in JavaScript (and CSS) compared to where I started
  • I'm working on it every six months or so, mainly on weekends or some evenings
  • it's a hobby, it's OK to change to continue enjoying it. Be kind to yourself!

Conclusion

I started again! Actually it's not a total fresh start. I'm using a lot of things already written, which saves time. But I can see where I'm going, what's the plan, what are the best practices to help me maintain a code easy to understand and update. I better understand how Git and versioning works. So I feel more confident in the task. And I'm keeping some principles that helped me achieve the first version:

  • the game should be playable from start to end
  • implement verification one at a time
  • stick to "vanilla" JavaScript for now

See you for a Version 2 bêta!