Card Game GUI
This program is the third phase of a playing card game the class is developing through assignments. This is a display-only program and no actual game is played. In this phase, the CardFrameWork class is added and utilized to create a game. A computer player and a human player are dealt 7 random cards and are displayed in a GUI interface showing the Game Room and three framed panels: the computer player at the top, the playing area of 2 cards only in the middle and the human player at the bottom. Click the "View More" button to see the code file on GitHub.
Pseudo Datamatrix Barcode Scanner
This program is a pseudo Datamatrix barcode scanner. BarcodeImage class takes in an image as a 1D string array, converts it to a 2D boolean array and stores the image. Datamatrix class, which is implements the BarcodeIO interface, utilizes BarcodeImage as it takes in either a BarcodeImage object that is then converted to a text string or a text string that is then converted to a displayable image. True is represented by '*' and False is represented by ' '. An all black spine border is applied to the left and bottom lines of the image as well as an alternating border is applied to the top and right lines of the image. An encompassing border utilizing '-' and '|' surround each image when displayed. All white space outside the image's alternating borders is clipped. Click the "View More" button to see the code file on GitHub.
Soft Deletion in a General Tree
This program creates a tree, adds leaves to it, clones the tree, removes a few leaves via soft deletion by marking the boolean deleted as true, from that point on, the virtual lists will not display the marked leaves nor their children, then garbage is collected meaning all the leaves flagged as deleted and their children are removed via hard deletion. A virtual display and a physical display with virtual and physical size counts for the tree is shown after each step for clarity. Click the "View More" button to see the code file on GitHub.
Card Game Ranking
This program has a stack order of objects that holds the ranking of the card game chosen, default and the big two are used as examples. The ranks for value ordering and suits are set and two lists are created with a random card chosen and added to each list, pushing and popping between the default and the big two ranks as they are added. The resulting lists are displayed with the cards sorted by the intended rank for each list myList 1 is the default, myList 2 is the big two version. Click the "View More" button to see the code file on GitHub.
Card Game LinkedList
This program adds 10 randomly chosen cards to a LinkedList collection via the insert() method, ordering them as is dictated in the Card class. It also adds a duplicate of the same card at the same time. It then removes 5 of the cards via the remove() method, also removing any duplicates, which may be more than just 2 given the randomness of the generator method. Then, it utilizes the removeAll() method to clear the list with a message should the method return false, letting the client know the card wasn't listed. Click the "View More" button to see the code file on GitHub.