GithubHelp home page GithubHelp logo

rohanrajpal / advanced-programming-tutorials Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 3.0 6.37 MB

Questions and Code for the tutorials I'll deliver for CSE201

License: MIT License

Java 99.73% CSS 0.27%
hacktoberfest java object-oriented-programming programming-tutorials

advanced-programming-tutorials's Introduction

Hi there ๐Ÿ‘‹

  • ๐ŸŒฑ Iโ€™m currently enabling folks to Distribution first SaaS boilerplate with Launchnow
  • โšก Fun fact: I love cooking, dancing and travelling

advanced-programming-tutorials's People

Contributors

dv-rastogi avatar loser23 avatar rohanrajpal avatar tejasoberoi27 avatar vasu19126 avatar vasudevsinghal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

advanced-programming-tutorials's Issues

Exceptions not handled in tut7.

When we give unexpected input, program get terminated. I think to handle these exception, program should show error message then ask for input again.
I would like to contribute to this by handling these exception. If you want these exception to be handled in some other way, please let me know.

tut 5 is not running.

When I try to run Main.java in tut5 . I am getting many errors.
Main.java:77: error: 'else' without 'if' else{ ^ Main.java:86: error: class, interface, or enum expected private static int takeIntInput() { ^ Main.java:89: error: class, interface, or enum expected try { ^ Main.java:91: error: class, interface, or enum expected } catch (Exception ne) { ^ Main.java:93: error: class, interface, or enum expected } ^ 5 errors

Bug while creating multiple user in tut7

When we create multiple user in program it don't ask for username. It is because you used nextInt in tut7/Game.java and tut7/Menu.java, while taking integer input. I think by taking input as string and parsing it using Integer.parseInt() function to int will resolve this.

Hp should not be negative

While running tut-7 i found a bug that it hero hp can go negative. I think this should not be less than zero as mentioned in tut-7 pdf.

You choose to attack
Your Hp: 60/100Monsters Hp :180/200
Monster attack!
Your Hp: 35/100Monsters Hp :180/200
Choose move:

  1. Attack
  2. Defense
    3)Special Attack
    3
    Special power activated
    Performing special attack
    Your Hp: 35/100Monsters Hp :180/200
    Monster attack!
    Your Hp: -4/100Monsters Hp :180/200
    You have died start over
    You are at location 10 Choose path:
  3. Go to Location 0
  4. Go to Location 3
  5. Go to Location 6

tut-6 inputs are not taking properly

When i run tut-6 it is really difficult to understand what to enter because it is not printing what we have to enter. Also sometimes we need to enter 2 and 3 inputs together so it is really confusing what we have to enter.

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.