Git Product home page Git Product logo
  • 👋 Hi, I’m @nitsharama017
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

Nitish Kumar's Projects

4-devices-with-led-alexa icon 4-devices-with-led-alexa

This code will create four FauxMo smart-home devices that emulate Belkin We-Mo switches. The unmodified version of this code is originally by kakopappa and can be found at https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/tree/master/wemos. The five additional files: CallbackFunction.h, Switch.cpp, Switch.h, UpnpBroadcastResponder.cpp, and UpnpBroadcastResponder.h are required for the NODEMCU_ALEXA_wemos.ino file to complie and upload to your NodeMCU or ESP8266. For more information on how to install the requsite ESP8266 libraries and boards to Arduino, please read my documentation which is part of my LinkNodeR4 and Amazon Alexa tutorial article which can be found at: http://themakersworkbench.com/tutorial/how-use-amazon-alexa-control-linknode-r4-esp8266-4-channel-relay-board For links to the components used in this project, open the Project_BOM zip file for an excel, open doc, and pdf of the bill of materials and links to the products on Amazon.com. Thanks for checking out my project. If you have improvements, or changes that should be made, please feel free to fork or leave a message and I will add a new branch.

cpp_isfun icon cpp_isfun

I scored 105/100 in the finals for this course and got an A grade. If you are starting C++ these programs are interesting and can help you build a basic to advanced understanding of the language. Check the link below for a curated list of resources for different topics in C++.

cricket.cpp icon cricket.cpp

Virtual Cricket Game Application Hi, Welcome Back! Glad to see that we have made it so far in this training i.e. till the last module. This training has tested you on all fronts and has made sure that you become a good programmer. Continuing with the same spirit, enthusiasm, and excitement - we have one final project for you which is basically the next level of the Gully Cricket application that you have already developed in module 3. In this module, you have to create a Virtual Cricket Game application called “CRIC-IN”. Now, how to create it? What all details are required? Don’t worry, we have covered all the details for you. Below this, you will find all the necessary details required to code this project. All the Best! Problem Statement Build a cricket game application using the C++ programming language. Required Output Please check the game-output.pdf file provided with this problem statement. It’s not necessary to mimic the exact same output. You can use your own creativity and make your app output better than the given required output. Project Requirements 1. There should be two teams: TeamA and TeamB a. Each team will have 4 players. b. The players for each team will be selected by the user from the given pool of 11 players. You can assign the names to those 11 players yourself. c. The sequence in which the players are selected for each team will decide the batting and bowling sequence for that team. For example, if Team A has Virat, Rohit, Dhawan, and Rahul; Virat will be the first player to bat or ball. 2. There should be two innings. a. Each innings will be of 6 balls. b. In each innings, only one bowler from the bowling team will bowl all the 6 deliveries and at a time one batsman from the batting team will bat until he is declared out. c. The first player from the bowling team will be always selected to bowl first and the first player from the batting team will be always selected to bat first. d. When a batsman is OUT, the next batsman from the batting team in sequence will start batting. 3. There should be a toss functionality. a. The team who wins the toss will decide to either bat or bowl first. 4. In each delivery, possible runs can be scored from 0 to 6. 5. OUT criteria: If a batsman scores 0 runs he will be declared OUT and the next batsman in sequence will start batting. 6. Match End criteria a. If runs scored by TeamA is greater than the opponent TeamB, then TeamA will win the game or vice-versa. b. If runs scored by TeamA and TeamB are the same then the match will draw. 7. Improve user experience by adding functions to display the pool of all the 11 players, display players of each team after team selection, display game scorecard after each delivery and display the match summary when the match ends. Rough Algorithm with Approach 1. Create three classes namely Player, Team, and Game. a. Create 3 header files (.h) and the corresponding source files (.cpp) for the three classes. b. Declare Player class attributes to store information such as name, unique id, runs scored, balls played, balls bowled, runs given, and wickets taken in the match. c. Declare Team class attributes to store information such as team name, total runs scored by the team, total wickets lost, total balls bowled, and list of team players. d. Declare Game class attributes to store information such as team A and team B details, players per team, maximum deliveries allowed in each innings, names of all the 11 given players, and a variable to check which innings is going on. e. Additionally, in the Game class, declare two pointers of type class Team to point to the batting team and bowling team in each innings and two pointers of type class Player to point to the current batsman and the bowler. 2. Welcome users and show a few basic game instructions. 3. Display all the 11 players with the array index so that the user can select the players using that index for each team. 4. Select 4 players for each team one by one in an alternative way. a. Write a utility function to take only integer user input. b. Write a validation function to allow a player to be added to a team only once. 5. Display selected players from each team. 6. Add toss functionality. a. Allow the toss winning team to choose either to bat or bowl first. b. Initialize the batting team and the bowling team. 7. Start the first innings. a. Initialize the batsman and the bowler. 8. Start playing the first innings. a. After each delivery, update batsman score, bowler score, and both teams score. b. If in a delivery runs scored is 0 then the batsman will be OUT and the next player in sequence from the batting team will start batting. c. If in a delivery runs scored is 1 to 6, just update data and continue the innings. d. After each delivery, validate the innings score to check if the innings is over. 9. After each delivery, show the game scorecard. 10. When the first innings ends, start the second innings. a. Initialize the batting team and the bowling team. b. Initialize the batsman and the bowler. 11. Start playing the second innings. a. Reuse the same code written to play first innings. b. After each delivery, validate both innings’ scores to decide the winner. 12. Display match summary in the end. Additional Points 1. Use escape characters such as ‘\t’, ‘\n’ wherever needed to keep program output clean. 2. Use usleep() function as applicable along with user-friendly messages.

symtable icon symtable

Creating the matrix data structure using other basic data structures and defining all the functions required for the matrix. The program is also tested using the provided test.cpp files.

try-django-1.11 icon try-django-1.11

Learn the fundamentals behind one of the most popular web frameworks in the world: Django. We will teach you step-by-step how to implement concepts like Views, Template Rendering, Forms, Saving Data, URL routing, Deployment aka Going Live, and so much more. Django is a web-framework written in Python and runs the backend for many of the internet's most popular websites such as Instagram and Pinterest. Get started today!

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.