Inspiration:
We found inspiration for the project from ChatGPT after asking the AI for projects for beginner programmers. This is our first hackathon and we are all 1st and 2nd quarter CS students, so we had a knowledge deficit in front end coding languages.
What it does:
This program allows a player to roll dice and get a score. After the player rolls a dice the program automatically rolls dice and allocates that score to a bot. The player and bot take turns until one reaches 20. If they both reach 20 in the last round, the player (or bot) with the highest score wins. An alert tells the player who won and celebrates the end of the game with confetti.
How we built it:
We used our knowledge of Python to generate random numbers for each dice roll. We sought assistance from ChatGPT to help us code in Javascript, HTML, and CSS to create the website.
Challenges we ran into:
The confetti was our greatest challenge. It was difficult to make it work without having a strong knowledge of CSS and Javascript. All members of the team have limited coding experience. No member has experience with HTML, JavaScript, CSS, or Machine Learning. The project itself was difficult to break into individual pieces that could be developed in tandem. Navigating GitHub and maintaining version control in this way was new to everyone on the team.
Accomplishments we are proud of:
We are proud of our teamwork to complete our first hackathon! We set out to create a simple dice game and we were able to make it functional.
What we learned:
We learned how to provide effective prompts to ChatGPT in order to improve our code and learn new coding languages. We also gained a general understanding of HTML and role of JavaScript and CSS in website development.
What's next for Dice Game:
We can further develop this program by providing a better user interface with clear instructions for game play and more engaging graphics (popping confetti when player wins, sad violin song when player loses). We could expand the game play to Craps, Yahtzee, or other dice games. We could also create a bot that can predict the outcome of the game as it is progressing. Team members briefly investigated this and, under different time constraints, would have pursued TensorFlow to teach the bot how to predict future games.
Built With
- chatgpt
- css
- flask
- html
- javascript
- python
Log in or sign up for Devpost to join the conversation.