Today our goal is to update the function for the final value in our game debug menu which is resolveBet(). Last video we ran into an issue where we tried to nest a question in our debug interface. So what happened was when we selected to set the bet, we needed to then input a […]
Monthly Archives: November 2020
Create Dice Game pt 5
Now that we have a game object we need to update all of our existing functions and modify our resolveDice() function so that it doesn’t loop. Here is the new resolveDice() function. Next I need to handle setting the bet and resolving the bet, then work on a game controller. And finally create a web […]
Create a Steet Dice Game Pt 4
Today we created a game object so we could use the result of the functions we were testing with the other functions. We created some methods to get and set object properties and we added a displayGameObject menu item. And we are now using the gameObject with the set shooter function and it appears to […]
Creating a Street Dice Game Pt3
Today I want to finish the functions on the interface and we need to determine how to pass data. I think we need to create a game object to pass into the functions for now until I understand more about scope. Here is what we have left to implement for the first set of functions: […]
Creating a Street Dice Game Pt2
Ok, since Creating a Street Dice Game Pt1 I realize I needed a testing interface, and I thought back to DOS batch files. When I was young and everything was run from command line, sometimes you wanted to boot a disk and run a program or you wanted a simple menu on boot and you […]
Creating a Street Dice Game Pt1
Today, I wanted to build a game and start a project from scratch. I decided on Street Dice. I decided on Street Dice because it has fixed rules and I think it is a perfect beginner project for my skill level. About a year and a half ago I created an RPG Dice Battle Game […]
Trying to Understand MongoDB Data Modelling
I am currently taking a node.js, express, and mongoDB bootcamp on Udemy by Jonas Schmedtmann https://www.udemy.com/course/nodejs-express-mongodb-bootcamp/ and I am struggling a bit to understand data modeling so today I rewatched the two class videos that cover this in detail, and took the following notes: Data Modeling Real world scenario -> Unstructured Data -> Structured, logical […]
Create a Journal App in Browser
In this post we are going to do some simple DOM manipulation and take text input and add it to a ul as a li in the browser. We are going to use Bootstrap 4 for our UI and keep it really simple. First we want to get a game plan together, so I map […]
Create a Command Line Journal App in Node
Tracking our thoughts. It is something we all think about doing at one time or another. Myself I have tried to start a journal and keep up with it countless times. I usually get several days in to a couple weeks then move on to something else. I don’t think that is such a bad […]
Read Input and Write File With Node
Yesterday, I learned how to read from a file. Today, I wanted to learn the natural extension of yesterday’s lesson and learn to write to a file! Along the way, I decided I needed to get some input from the command line so I could write dynamic info to my Welcome.txt file. Just like yesterday, […]