Inspiration

What inspired me was the game Poker Night at the Inventory, which was a game made by Telltale that took popular characters and just put them in a poker game. I thought that would be an interesting concept for an aggie themed code project.

What it does

It randomizes two cards for both Rev and the player. It then randomizes three cards that count toward both Rev's and the player's hands. The different card values get tallied up to see who has a better hand, and a winner is declared. It is not finished as of this time.

How I built it

I used HTML, CSS, and JavaScript. While HTML and CSS were helpful for text and a picture of Reveille on a grid, the bulk of the program is in JavaScript. Over 2000 lines of JavaScript, mainly comparisons and tallying of the cards and all their different combinations.

Challenges I ran into

I had only worked with HTML, CSS, and JavaScript very little before this, so I had to devote quite a bit of the time to learning how to put together what I wanted to do. I also could not figure out a good and efficient way to figure out what kind of hand the player and Reveille had, switching around three times before I settled on the current method of counting them all on separate variables and the checking each number. When finally wrapping that up, I got an error that an expression was expected somewhere in my code, but I could not figure out where, and spent what time I had left trying to get my code to run, or at very least trying to get what I had running before.

Accomplishments that I'm proud of

I'm happy that I figured out a way to code the way to tell what kind of hands Reveille and the player had. While it was definitely not the most efficient, and took me many hours to actually type out, I'm happy I stuck to it.

What I learned

Learn HTML, CSS, and JavaScript ahead of time.

What's next for Texas Hold Em Vs. Reveille

I really want to figure out the cause of the error because it really got on my nerves. I would love to figure out a better way to figure out which hands are which depending on the cards. Then I'd want to make fake dining dollars to bet with and make it more like actual poker. Once that is out of the way, I would probably want to see if I could add more characters to play against, as one of the main draws of the game I was inspired by was enjoyable character interactions.

Built With

Share this project:

Updates