+ 2

Java project for beginners

Any simple game

6th Sep 2019, 6:14 PM
Sandesh Mandhare
18 Answers
+ 4
I wrote a little program that details what I stated. I purposely put a lot of comments that hopefully with explain some things. Feel free to copy the code to an IDE, change things, and learn from it. If you have a question I will be happy to answer😊 Note* the code does not work in sololearn it throws a error because of the input. I have on sololearn for looking at the code only. Use the link to actually run the code. It works on computer and mobile. Link : https://RPSComplexJ.adamkollgaard.repl.run Code: https://code.sololearn.com/ct9qvUI2e0Cc/?ref=app
8th Sep 2019, 1:51 PM
Adam Kollgaard
Adam Kollgaard - avatar
+ 6
maybe a number guessing game: ------------ int number = random(lowest,heighest) int guess = input() while true guess = input() if guess > number print("too big") elseif guess < number print("too small") elseif guess == number print("got it") break ----------- idk any java so this is just pseudo code (sololearn cant handle this code tho so use an ide)
6th Sep 2019, 6:48 PM
Cat Sauce
Cat Sauce - avatar
+ 5
i recommend exercises like: 1.print the largest number in array of int. 2. Sort and print an array of int-s 3. merge two sorted int arrays[ ] and print the result. 4. Open a txt file, print each line starting with it's number. you are invited to see the challanges that i have coded... all the best 😁👌🏼
7th Sep 2019, 9:08 PM
🍂B. Eitan 🌵
🍂B. Eitan 🌵 - avatar
+ 4
Everytime I learn a new language I make a rock, paper, scissors game. If you want a harder challenge try to make the computer guess what you will pick instead of randomly choosing an option. Hint: have the computer guess based on the last turn. Have it go back into previous turns to see what you did after that. If the last turn you picked rock the computer checks to see what you did after rock in a previous turn. If you picked paper after rock. The computer guess you will pick paper again.
7th Sep 2019, 9:48 PM
Adam Kollgaard
Adam Kollgaard - avatar
+ 3
how much of a beginner are you?
6th Sep 2019, 6:15 PM
Cat Sauce
Cat Sauce - avatar
+ 3
Sandesh Mandhare whats the most advanced project you ever made in java?
6th Sep 2019, 6:19 PM
Cat Sauce
Cat Sauce - avatar
+ 3
a command line game?
6th Sep 2019, 6:43 PM
Cat Sauce
Cat Sauce - avatar
+ 3
Sandesh Mandhare dm if you need help
6th Sep 2019, 6:52 PM
Cat Sauce
Cat Sauce - avatar
+ 2
Ok thanks
6th Sep 2019, 6:49 PM
Sandesh Mandhare
+ 2
Adam Kollgaard i would love to see your code, is that possible? i have never worked with ai, so this could be cool
8th Sep 2019, 5:57 AM
Cat Sauce
Cat Sauce - avatar
+ 1
Know only java core language
6th Sep 2019, 6:18 PM
Sandesh Mandhare
+ 1
This is my first attempt So I want any suggestions related to write code to make any simple game because this is kind of assignment given by my teacher.that i can make and explain easily and run also
6th Sep 2019, 6:36 PM
Sandesh Mandhare
+ 1
You can also give me code for reference also
6th Sep 2019, 6:39 PM
Sandesh Mandhare
+ 1
Yess
6th Sep 2019, 6:44 PM
Sandesh Mandhare
+ 1
Thanks for this reply .If you also get another idea please send me back
6th Sep 2019, 6:52 PM
Sandesh Mandhare
+ 1
Yess sure
6th Sep 2019, 6:52 PM
Sandesh Mandhare
+ 1
Can you send me sample code or simple algorithms steps it will help me a lot
8th Sep 2019, 4:47 AM
Sandesh Mandhare
+ 1
Thanks
8th Sep 2019, 1:58 PM
Sandesh Mandhare