Skip to content
Victor Huynh
  • Home
  • About
  • Blog
  • Link Tree
Coding Portfolio

Liar’s Dice Update 1

  • 2021-10-222021-10-22

So in this blog post, I wanted to give an update (to myself as well lol) to what the current state of my Liar’s Dice attempt looks like.

Currently, I think I’m done the base game logic for a single player, this entails:

  • being able to roll a set of 5 dice to determine your hand
  • saving it to a shared (?) state, as a dictionary using useState()
  • being able to determine if it’s a bluff or not
  • being able to raise/increment the next call
  • being able to continue the game after doing the first actions

The next steps that I will have to be focusing on is how to make it (and test it) for multiplayer purposes.

This is where I usually get stuck on in the past (also because I learned useState and didn’t want to refactor everything because I felt like I wanted to see what I thought of at the time — this time I did use React Hooks primarily). I’m hoping to get through this roadblock and figure it out this time around!

Some of the useStates that I’ve used at this point are:

  const [tableHand, updateTableHand] = useState({});
  const [playerHand, updatePlayerHand] = useState({});
  const [diceRolled, updateDiceRoll] = useState(false);
  const [faceSelected, updateFaceSelected] = useState();
  const [quantitySelected, updateQuantitySelected] = useState(0);
  const [previousFace, updatePreviousFace] = useState();
  const [previousQuantity, updatePreviousQuantity] = useState();

I wonder if I’ll figure out a better way to implement this down the road, only time and effort will tell.

Coding Portfolio

Reflection – putting YouTube on the backburner

  • 2021-10-022021-10-02

As a follow-up to my previous post, I feel like I could be spending my time better working on my portfolio now (land the job earlier, spend more time learning and applying fundamentals), vs. putting my knowledge into video form. In my previous post, I had wanted to do the following:

  • Blogging – this is a good form of self reflection and sharing my progress
  • Technical skills – doing daily problems is maintainable
  • Knowledge gains
  • Portfolio gains – this extends into Knowledge gains; I feel like I should do first and learn next, instead of the other way around
  • Fitness goals
  • Sports goals – this kind of extends fitness goals; I won’t be lifting heavy, but I will be working on bodyweight and skill training
  • YouTube videos – felt like it was taking up too much time, and felt preachy with my current video ideas
  • Social interactions – this was getting to be excessive (although it was one of my earlier goals in the year), cutting down drastically
  • and Reading – always read

And the ones I’ve crossed out are the ones that I’m putting into lower priority, as I always preach:

Less is more. Do less better.

My main shift will be in the form of Portfolio gains, I will be working on my Liar’s Dice app first and foremost, and will work on trying to deploy it into a shareable form as soon as possible. This will probably be the main thing I will be blogging about in the near future until its completion, and I hope to be able to commit to and and finally complete this (this is probably my 6th attempt or so, from scratch).

Recent Posts

  • 3 Month Hiatus? Life update
  • I’m back…
  • Current learning goals and MERN update
  • End of my first week at TD!
  • First day at my new job approaches

Archives

  • August 2022 1
  • April 2022 1
  • December 2021 2
  • November 2021 2
  • October 2021 5
  • September 2021 4

Categories

  • Coding Portfolio
  • Habits/Skills
  • Interviewing
  • Learning
  • Liar's Dice
  • TD
  • YouTube
Theme by Colorlib Powered by WordPress