Senior DDM

The assignment was to create a board game platform

Reflection of DDM

This DDM was a program that allowed the user to play a board game. I chose the game chutes and ladders because it was my favorite as a kid. While creating the board, I came up with the idea to make it themed around my senior year (class of 2026) and the events that took place for me or other seniors. This program starts with a login and register page. Once both users are logged in, the program then takes the players to the game choice, which is chutes and ladders. Before starting the game, a dice roll is used to determine the order in which players take turns. The players take turns, rolling the dice and moving their players until one of them reaches graduation first and is the winner.

For the login and register page, I had to use a SQL database. After a user enters their information to login, the program would run a query to find the user and check if the password is correct. For registering, the user would have to enter a unique username, a valid password, and their answer to a security question. Once the username and password are validated, the database is updated and the user is registered. To make the board, I made Square objects. The Square class had two constructors, one taking only an int for the square number, the other getting the square number the player ends on with an int, a boolean for if the square is a chute & if the square is a ladder, and a string for the description of the chute/ladder.

If I were to add onto this project, I would add visuals for the chutes and ladders, so the players could see what spaces are good/bad. I would also add to the player class, including a win-loss rate that would be sent to the database.