top of page

Part 2 of my Daily journal (ISU)

  • etienne caronan
  • Nov 25, 2015
  • 2 min read

______________________________________________________________________

November 19, 2015: Today, i had to write up an algorithm for the dealer's offer. The dealer's offer is based off of the remaining values in the unopened cases. What I had to do was get the remaining values and get its total average. This code was rather simple since my class was proficient in manipulating loops. What I had to do was that set a constant for the amount of cases total = 26. So, everytime a user picks a case amount of total cases was subtracted by 1 and that value gets sent up to the function (dealer's offer). There was one issue that I did encounter which was that everytime a user opens a case I could not remove the element assigned to that case therefore it would affect the offer amount. I attempted to change that an array into a list but, due to my limited knowledge and despite all my research on the internet I could not find a code that gets me the total sum of the list. I compensated for this by diming the element into 0, which essentialy removes that element from the equation in the Function (dealer's offer). I was also able to come up with the algorithm that stops the game (by disabling all the cases) and gives the user an offer. It was fairly simple, I used a constant which is equal to 0 and everytime the user picks a case the program adds +1 to the constant. I was able to disable all the other cases through the use of the IF command. So, whenever const = 3 I used a loop which disabled all the pictureboxes in the picbox array. Then, the deal or no deal button shows. If user pick deal, the game ends otherwise, the game continues and all picboxes are enabled. Today was the most productive day I had.

_______________________________________________________________________

November 20, 2015: Today the program was essentially done I just had to fix a few bugs in it. They were very simple bugs such as some pictureboxes that are still enabled despite the constant being equal to 3. The issue was that I did not include them into the array.

_______________________________________________________________________November 21, 2015: Today was the day I finished my program by adding some small features to it such as a button which opens a dialoug box that explains the premise of the game. I also polished my program aesthetically by adding pictures for the cases, a background for the main menu and the game and the picture of the game host.

THIS IS THE END OF MY JOURNAL. THANK YOU FOR READING


 
 
 

Commentaires


Featured Posts
Recent Posts
Follow Us
Search By Tags
Archive
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square

© 2023 by James Everet. Proudly created with Wix.com

  • vimeo
  • Twitter Clean
  • facebook
bottom of page