Code Monkey home page Code Monkey logo

Hamza Tariq's Projects

book-store icon book-store

Multithreaded Three-Tier Architecture - Book Store - Application.

data-structures icon data-structures

Easy implementation of various Data Structures in Java language. Red-Black Tree, Splay Tree, AVLTree, PriorityQueue, Doubly-Linked-List, Stack, Queue, Array, ArrayList, Disjoint-Set,Binary-Search Tree, B-Tree.

datasetnonsmellycomponents icon datasetnonsmellycomponents

This is the react non smelly components dataset take from following repos 1.https://github.com/ariakit/ariaki 2.https://github.com/shadcn-ui/uit 3.https://github.com/facebook/react

electricity-billing-management-system- icon electricity-billing-management-system-

It is Bill Management System java based application .This Application Manage the Electricity bills.You can calculate your reading generate bills and print slip.

fast-food-mangement-system icon fast-food-mangement-system

A fast-food restaurant has a process of a Manager, Cook, Waiter, and Customer. At the start, the restaurant has one manager, cook, waiter and customer but you can create multiple Cooks and Waiters to handle more than one Customer using multithreading. When the customer will place its order you will calculate the total preparation time of all the dishes that the customer ordered and the customer will wait for that time..Step-1: Customer will tell his name and ID to Manager and can ask him about Menu. Step-2: The manager will give the menu to the customer. Step-3: Customer will check menu and place order. Step-4: The manager will receive an order and keep these orders in the sequence Step-5: The manager will calculate the bill of the customer and add into (Daily_Sales). Step-6: Now any available cook will get the order Step-7: One order can have multiple dishes therefore multiple cooks can work for the preparation of one order to minimize preparation time. Step-8: Any available waiters will get prepared food and deliver to customers one waiter can deliver one order at a time. After delivery waiter will add order amount in (Daily_Waiter_Sales). Step-9: Customer will get his order give confirmation message and terminate. Step-10: At the end you have to compare Daily_Waiter_Sales with Daily_Sales and print their values.

i190605 icon i190605

Config files for my GitHub profile.

number-crushing-game icon number-crushing-game

Number Crush is a "match-three" game, where the core game play is based on swapping two adjacent random values among several on the game board to make a row or column of at least 3 matching-random values. On this match, the matched random values are removed from the board, and random values above them fall into the empty spaces, with new random values appearing from the top of the board. This may create a new matched set of random values, which is automatically cleared in the same manner. The game is split among many levels, which must be completed in sequence.LEVELS Level 1 Level 1 has a 10x10 board. When a number is swapped with another number, if a combo exists, the combo is crushed, dropped, and score updated accordingly. Otherwise, the numbers are swapped back! The board is filled with random numbers from 1 to 5. It has bomb ‘B’ too. When a number is swapped with bomb, all of its occurrences are destroyed.Level 2 It has a plus shape board with same functions of level 1. The board is filled with random numbers from 1 to 4.Level 3 It has same board shape as level 1 but we have blockers ‘X’ too for restricting player movement.How to Update SCORE AND MOVES 1) During crushing, the score added depends on the size of combo. A combo of 3 adds 3 to the score. A combo of 4 will add 4 and so on. 2) During explosion, it is different though. The added score depends on how many occurrences are destroyed and from which location they are destroyed. If a number is at bottom, more numbers will have to be dropped from top and hence more score. 3) The user is given a total of 15 moves in each level. When all moves are finished, user is promoted to new level and moves are again reset to 15. File Handling  All Individual levels score will be saved in the file.  Stores the highest score and player name in a same file.  Record in a file should look like in the format given below Ali Raza Level 1: 20 Level 2: 30 Level 3: 46 Highest Score: 46 BONUSES  Restricting mouse cursor to not go outside the board boundaries.  When bomb is used, all occurrences of the exploding row/col are first highlighted for a second, then explosion proceeds.  If after swapping, no combo exists, the numbers are swapped back.  Changed background and look of level 3.  The string ‘crushing’ is displayed when combos are being crushed and score is being updated.  ‘Explosion’ is displayed when a bomb destroys a row or col in board Divide and Conquer You need to write different procedures to help yourself out in this project. You can use these procedures(not mandatory) for performing the game: populateBoard (.) It populates the board using random numbers generated by the 1ah interrupt. The initial seed is our system time which is further randomized by mathematical operations. Hence this generates completely new random numbers in all successive iterations. drawBoard (.) We have implemented all graphical features. This includes drawing border pixels using 10h interrupt and then drawing characters using 10h interrupt. We have used the video mode 13h. The characters are read from the 10x10 ‘board’ array. This function makes use of another functions drawString that draws the username, score and moves using 10h character draw interrupt. updateBoard (.) This function checks for combinations, crushes them, auto-fills and drops until all the combos are removed from the array. It makes use of another function checkCombo which is called in a loop unless and until the value of ‘crush’ variable is set to 0. 0 means there are no more combinations in our board array. Vertical and horizontal combos are checked. takeInput (.) It uses the 33h mouse interrupt to check when mouse is pressed. It checks it 2 times, for two cells. Then if cells are adjacent, they are swapped. If no combo is formed after swapping, the no’s are swapped back. initiateBomb (.) If any no. is swapped with bomb, it destroys all values of that row or column through which number is swapped by bomb. drawString (.) This function draws the player's name, score and moves left on the top. Along with this, it also shows the current level, and strings of ‘explosion’ and ‘crushing’.

restaurant-system-java icon restaurant-system-java

A program that utilizes multithreading and synchronization to simulate a real restaurant system

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.