Sponsored Content
Top Forums Shell Programming and Scripting Creating a text based game using shell script. Post 303008921 by Othmane on Thursday 7th of December 2017 10:57:07 AM
Old 12-07-2017
Display Creating a text based game using shell script.

Hello guys I'm new to shell scripting and I need to make a game using shell script. I want to know if it is possible for me a total noob to shell scripting to make this game.

The game concept is simple:
  • First thing when you launch the script you get a menu in which you select if you want to login or signup or start a game or get more information or quit the game.
  • Second, you have to be able to create an account and the game should be able to store usernames and passwords and their respective scores. Also you should be able to delete your account if you want to.
  • Third, it is a word sorting game, you get 5 letters and you put as much words as you can using the given 5 letters.
  • Fourth the game should be able to tell if the words you enter are correct using a dictionary which I will provide.
  • Fifth, it should be able to keep score and give the total score at the end of the game.

And that's it I want to know if it is possible to create such a game using shell script and the difficulty degree.

Thank you all.

PS: I have a week to make it starting from tommorow.

Last edited by rbatte1; 12-07-2017 at 12:37 PM.. Reason: Converted text list to formatted list with LIST tags
This User Gave Thanks to Othmane For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script Poker Game

Original Code Taken from here: http://www.tldp.org/LDP/abs/html/bashver2.html#EX79 The code in the above link displays 4 unique 13 cards hands. I've modified it to deal a hand unique 2 card hand to 2 different players, then deal 5 unique community cards as in Texas Holdem (3 cards, then 1... (8 Replies)
Discussion started by: earnstaf
8 Replies

2. Shell Programming and Scripting

Dynamically creating text files using shell script

Hi All, I want to create a shell script which dynamically create text files. i am using the following script $i=1 while do cat > test_$i.txt done but while running the script it was stopping(the cursor not going to next step, i have to enter ctrl+c to make it stop). it is creating only... (2 Replies)
Discussion started by: KiranKumarKarre
2 Replies

3. UNIX for Dummies Questions & Answers

text based football game?

Is there a textbased football game (American) that I can download through ubuntu server edition? (1 Reply)
Discussion started by: dadoprso
1 Replies

4. Shell Programming and Scripting

Making a Text based game. Need help.

Okay so Zork sparked my interest in this. I have been learning to program for the last year and a half. I've dabbled in everything from Java to Ruby to PHP & XHTML & SQL, and now I'm on bash. I really like bash scripting. Its easy and fun. I just started two days ago. Pretty much I've been writing... (1 Reply)
Discussion started by: lemonoid
1 Replies

5. Shell Programming and Scripting

Shell Text Based Game, This Error Makes NO sense. Please help

Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an... (3 Replies)
Discussion started by: lemonoid
3 Replies

6. UNIX for Dummies Questions & Answers

[Solved] Making a text based game

Hello, I am looking to make a text based game, that runs in the command window, or a window similar. I will only need to use 1 window. I read somewhere that there is libraries for this kind of thing? But I can't remember the name of them.. Can anyone point me in a direction? I will be... (2 Replies)
Discussion started by: murphy
2 Replies

7. Homework & Coursework Questions

Need help creating shell script with output that has 2014 calendar and 2 text items from a"fortune"

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am required to create a bash shell script with either emacs or vi. It must include the year 2014 calendar on... (9 Replies)
Discussion started by: dandanhelpmeman
9 Replies

8. Shell Programming and Scripting

Creating new users using a text file as imput (using only shell script and/or awk)

I need somebody who could help with an exercise. You have a text file called users.txt with this info inside: users.txt: user1:1234:/home/homedir1 ; user2:1234:/home/homedir2 ; user3:1234:/home/homedir3 ; user4:1234:/home/homedir4 ; The script should create an user using the... (2 Replies)
Discussion started by: marcosruiz
2 Replies

9. Shell Programming and Scripting

Tetris Game -- based on a shell script (new algorithm)

GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages Usage: bash Tetris_Game ] ] ] ] Range: #!/bin/bash # Tetris Game // The Art Of Shell Programming box0=(4 30) box1=(4 30 4 32) box2=(4 30 5 32) box3=(4 28 4 30 4 32) box4=(4 28 4 30... (69 Replies)
Discussion started by: complex.invoke
69 Replies

10. Shell Programming and Scripting

Proper distribution of cards in terminal based crazy8's game in bash script

When I run the following script at the bottom it say cards remaining=44...It should be=35. Can anyone tell me what I'm doing wrong. I've spent hours trying to get this to work and I can't go any further until this part works. thank you in advance Cogiz #!/bin/bash # Date="November, 2016" #... (2 Replies)
Discussion started by: cogiz
2 Replies
TREK(6) 							 BSD Games Manual							   TREK(6)

NAME
trek -- trekkie game SYNOPSIS
trek [[-a] file] DESCRIPTION
trek is a game of space glory and war. Below is a summary of commands. For complete documentation, see Trek by Eric Allman. If a filename is given, a log of the game is written onto that file. If the -a flag is given before the filename, that file is appended to, not truncated. The game will ask you what length game you would like. Valid responses are ``short'', ``medium'', and ``long''. You may also type ``restart'', which restarts a previously saved game. You will then be prompted for the skill, to which you must respond ``novice'', ``fair'', ``good'', ``expert'', ``commodore'', or ``impossible''. You should normally start out with a novice and work up. In general, throughout the game, if you forget what is appropriate the game will tell you what it expects if you just type in a question mark. AUTHOR
Eric Allman SEE ALSO
/usr/share/doc/bsdgames/trek.me COMMAND SUMMARY
abandon capture cloak up/down computer request; ... damages destruct dock help impulse course distance lrscan move course distance phasers automatic amount phasers manual amt1 course1 spread1 ... torpedo course [yes] angle/no ram course distance rest time shell shields up/down srscan [yes/ no] status terminate yes/no undock visual course warp warp_factor BSD
December 30, 1993 BSD
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy