Inspiration
This project was inspired by the desire to develop an engaging and instructional dice rolling game while also addressing statistical principles in a practical environment. We wanted to create a simple game in which two players may roll dice while learning about statistical measurements like mean, median, mode, and range.
What it does
Our project is a two-player dice rolling game written in Python. The program simulates 2 players rolling a die. Based on the outcomes of the rolls, the game tracks and displays several statistical measures. It gives players instant feedback on statistics such as mean, median, mode, and range, allowing them to compare and analyze their performance.
How we built it
Python was our major programming language for creating the game and doing statistical calculations. We used the Colorama library to add colorful text to the terminal output. Matplotlib was used to generate visualizations of the statistics acquired during the game, such as histograms, scatter plots, and box plots.
Challenges we ran into
We improved our Python programming skills, especially when it came to working with classes and libraries. I learned more about statistical ideas and their practical applications. Using Matplotlib, we learned how to include data visualization into our projects. We improved our problem-solving abilities by tackling game logic and user interaction issues.
Accomplishments that we're proud of
We began by constructing a Player class and simulating dice rolls before designing the game's structure. We eventually added statistics monitoring tools including calculating the mean, median, mode, variance, standard deviation, and range. We also used Matplotlib to visualize data and collect user input.
What we learned
Creating game logic that is intuitive and pleasant for the user. Implementing statistics calculations within the game in a precise and efficient manner. Overcoming technical difficulties in integrating Matplotlib for data visualization.
What's next for Dice Simulator
Extend the game by adding more types of dice or customizing the settings. Integrate extra statistical measures or provide users the option of selecting which statistics to display. Improve the user interface to make it more professional and user-friendly.
Built With
- colorama
- matplotlib
- python
- statistics
Log in or sign up for Devpost to join the conversation.