Skip to main content

Release 0.4 Final

This month had been extremely busy for all of us, especially since BTS630 (Major Project Implementation) required a lot of our focus as well. For this release, I had to create a restart / refresh button that resets the stats of the game (wins, losses, ties).

Comparatively to Release 0.3, I did not manage to find a very big issue. But I still found an issue that was bigger than the issues of Release 0.2, and big enough for this Release (0.4). For this release, I implemented the Refresh button, and managed to fix a few of the bugs as well. The Refresh button now changes all the stats back to 0. The bug I found was that the player choice was always 'null,' and the computer choice did not change. Now, the player choice is changed so that it correctly shows the player input, and the computer choice changes randomly every time a new choice has been made.

This course was overall very fun and different to the other required courses of the BSD program. I enjoyed it quite well and hope there are more courses like this offered at Seneca!

Issue: https://github.com/golemheavy/RPS-Multiplayer/issues/14
Pull Request: https://github.com/golemheavy/RPS-Multiplayer/pull/16

Comments

Popular posts from this blog

A CLOSER LOOK INTO RENAMING FILES IN NODE.JS

When programming, using modules and libraries within our code is a must. As the libraries are written by others, beginners will be confused on what each function and the arguments mean. Throughout this post, we will go through renaming files with Node.js. First, we must grasp the concept of opening a file, so the program knows what file to search for. The following is a simple set of code that will open a file. Open() const fs = require ( 'fs' ); fs . open ( '/open/some/file.txt' , 'r' , ( err , fd ) => { if ( err ) { throw err ; } fs . close ( fd , ( err ) => { i f ( err ) { throw err ; } } ); } ); Let's go through what each part of the code represents.  fs is a module that allows access to a physical file system.  The  fs.open  function is called when you want to open a file. The first argument should be the path to the file. The second argument refers t...

Git Commands

There are many commands on git that new developers do not know of. These commands can make working in open source projects, or group projects easier to understand. Of all these commands, I will be going through two that most new developers do not know of. Log While working in large groups, there are many commits that you or others may have done within a repository. Using 'log,' you can view the history of all the changes made. Basic command:    git log  With this basic command, you can view the commit id , author of the commit, date of the revision, and the details the user wrote.     git log --follow filename    This command allows you to follow the commit history of a single file. It is useful for working in big groups as you can follow a file that you contributed to, instead of viewing the whole repository. Simply replace ' filename ' with the directory of the file you want to view.   git log - number    git log...

Release 0.1

The past few weeks I have been looking at the differences between declaring variables for JavaScript. Var, Const, Let are the variable declarations that are widely used, each one having a specific purpose. New developers mostly use 'var,' as it is the first technique taught. However, 'var' declarations is no longer widely used by JavaScript developers. The modern practice of variable declarations is with ' const ' and ' let '. Before starting anything, I had to first understand the difference between the three: Const  declarations means the values cannot be changed/reassigned.  Let declarations should be used when declaring local variables in a block scope.  Var declarations hold the weakest signal which can be used outside of a block, and can be reassigned. For Release 0.1 , we were asked to look into a library called 'filer.js.' The task was to go through one of the test files, and change the old-fashioned 'var' declarati...