Hi can we help me to design simple and smart game by using function and loop or array? 🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hi can we help me to design simple and smart game by using function and loop or array? 🤔

28th Apr 2017, 2:15 PM
Bts...
Bts... - avatar
10 Answers
+ 5
What kind of game? What style/genre? Text or graphical? What do you mean by smart? How do you expect simple and smart to work together. Simple usability smart code or simple code but smart looking? I'd be glad to help, but I'd need some specifics first.
28th Apr 2017, 2:24 PM
Alex Lesage
Alex Lesage - avatar
+ 3
yes
28th Apr 2017, 2:26 PM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 3
Sudoku is the perfect example for the implementation of arrays and loops
28th Apr 2017, 4:53 PM
seamiki
seamiki - avatar
+ 2
I've seen a lot of such games in code playground section. Try to search something like "poker game" or "guess number game" or similar.
28th Apr 2017, 2:26 PM
Jeth
Jeth - avatar
+ 1
Simple and smart game about guessing numbers or poker
28th Apr 2017, 4:01 PM
Bts...
Bts... - avatar
+ 1
To make number guessing 'smart' you would have to make it have personality seeing as the base is super simple. i.e. Guess a number 1 to 10. As opposed to I'm thinking a number 1 to 10. Guess it if you can. or Correct! vs Lucky guess! or Wrong! vs I knew you couldn't do it! The game feels like a person and that will draw interest and create fun.
28th Apr 2017, 4:06 PM
Alex Lesage
Alex Lesage - avatar
+ 1
In a poker game you need to research all of the combinations and point systems. Once you have a working game base, make the dealer have some interesting lines for character. Use an array as a player's hand. Loop the turn system. Have win and loose conditions. Stuff like that. Instead of something as complex as poker I would start with '21' to get a working base for a hand system.
28th Apr 2017, 4:12 PM
Alex Lesage
Alex Lesage - avatar
0
yes
28th Apr 2017, 3:31 PM
Amit Sunilkumar Sethi
Amit Sunilkumar Sethi - avatar
0
what about poker
28th Apr 2017, 4:08 PM
Bts...
Bts... - avatar
0
ok
28th Apr 2017, 5:28 PM
Bts...
Bts... - avatar