Left-Center-Right is an ongoing project that I am currently working on. It is a relatively simple multiplayer dice game where each player's roll determines where they must pass one of their "chips," and the last player with "chips" is the winner.
​
While the game it is based on is simple, this program is a prime showcase for Object Oriented Programming principals through the implementation of several custom classes to create objects for the players, the dice, external file input/output, and the execution of the game logic.
![LCR Start](https://static.wixstatic.com/media/7297b6_6064fce73e964216955884d690a75d2c~mv2.jpg/v1/fill/w_518,h_326,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/7297b6_6064fce73e964216955884d690a75d2c~mv2.jpg)
![LCR Code](https://static.wixstatic.com/media/7297b6_19b530f101ce485987b4c735472c3b03~mv2.jpg/v1/fill/w_598,h_335,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/7297b6_19b530f101ce485987b4c735472c3b03~mv2.jpg)
Created in Visual Studio 17 using C++, custom Player, Dice, Game, and File classes were created, featuring a multitude of member variables and methods in each.
​
The current focus of this project is to add a Graphical User Interface. This has resulted in the need for significant re-design of the Game class which executes the game-loop and manages the rules.
A Windows Form was added to the project to create the window and GUI. It then became a matter of transitioning the program from text-based to GUI input.
This required changes to all of the classes to receive the input and to conform with the implementation of the Windows Form program architecture.
![](https://static.wixstatic.com/media/7297b6_160ed5c61d51449dbbb8002ad9736f80~mv2.jpg/v1/fill/w_108,h_68,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/7297b6_160ed5c61d51449dbbb8002ad9736f80~mv2.jpg)
![](https://static.wixstatic.com/media/7297b6_f69fd436069f4806871cf2ac85581e8e~mv2.jpg/v1/fill/w_107,h_68,al_c,q_80,usm_0.66_1.00_0.01,blur_2,enc_auto/7297b6_f69fd436069f4806871cf2ac85581e8e~mv2.jpg)
The biggest hurdle has been porting of Game class, which executes the game-loop. Transitioning from a Console application utilizing the standard input stream, to integrating in to the event-based system of the Windows Form has been a challenge.
​
After taking a different design approach for the Game class, I was able to overcome the challenge and get the basic functionality working. Though, some work remains to get the program finalized.
Visual Studio project files for Left-Center-Right can be found in my GitHub portfolio repository. This is an active project, so changes may be frequently added.
​
https://github.com/danielcoy/Portfolio
​
​