Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

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

Shell Programming and Scripting


Tags
shell, tetris

Reply    
 
Thread Tools Search this Thread Display Modes
    #43  
Old Unix and Linux 03-12-2012
tip78 tip78 is offline
Users Awaiting Email Confirmation
 
Join Date: Sep 2009
Last Activity: 13 March 2015, 11:44 AM EDT
Posts: 109
Thanks: 1
Thanked 11 Times in 11 Posts
huaihaizi i ment not to change [] -> x
i ment other figures from classic tetris
Sponsored Links
    #44  
Old Unix and Linux 03-13-2012
complex.invoke's Unix or Linux Image
complex.invoke complex.invoke is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 17 August 2017, 7:42 PM EDT
Location: BeiJing China
Posts: 236
Thanks: 6
Thanked 29 Times in 8 Posts
Quote:
Originally Posted by tip78 View Post
huaihaizi i ment not to change [] -> x
i ment other figures from classic tetris
Yeah, of course!
I have already defined so many different pieces, it's so easy to define your own ones if only you can understand my source code well, which is the rule to perform your own customization!

---------- Post updated 03-13-12 at 01:21 AM ---------- Previous update was 03-12-12 at 07:52 AM ----------

Tetris Game Version 6.0 Beta2 is available now!
Fixed portable issues!

Last edited by complex.invoke; 03-13-2012 at 02:38 AM..
Sponsored Links
    #45  
Old Unix and Linux 03-13-2012
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 20 October 2017, 11:16 AM EDT
Location: Amsterdam
Posts: 11,573
Thanks: 510
Thanked 3,355 Times in 2,959 Posts
Hi, it now also works on OSX, provided the terminal window is big enough...

I noticed in the get time function, the method used will cause a bit of time drift, since all the extra operations in the loop will take time in addition to the sleep 1 second. So it may be better to use sleep 1 & at the start of the loop content and a wait statement at the end.
The Following User Says Thank You to Scrutinizer For This Useful Post:
    #46  
Old Unix and Linux 03-13-2012
complex.invoke's Unix or Linux Image
complex.invoke complex.invoke is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 17 August 2017, 7:42 PM EDT
Location: BeiJing China
Posts: 236
Thanks: 6
Thanked 29 Times in 8 Posts
Quote:
Originally Posted by Scrutinizer View Post
Hi, it now also works on OSX, provided the terminal window is big enough...

I noticed in the get time function, the method used will cause a bit of time drift, since all the extra operations in the loop will take time in addition to the sleep 1 second. So it may be better to use sleep 1 & at the start of the loop content and a wait statement at the end.
Will fix!
Sponsored Links
    #47  
Old Unix and Linux 03-18-2012
complex.invoke's Unix or Linux Image
complex.invoke complex.invoke is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 17 August 2017, 7:42 PM EDT
Location: BeiJing China
Posts: 236
Thanks: 6
Thanked 29 Times in 8 Posts
Tetris Game Version 6.0 Beta3 is available now!
Sponsored Links
    #48  
Old Unix and Linux 03-23-2012
mallikarjun7777 mallikarjun7777 is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 16 August 2013, 11:37 AM EDT
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
hi its great job frm ur side.... bt how do u play... it is very scrambled...? canu discuss how did u write , i mean instead of source code u can describe the algorithm that was in ur mind??
Sponsored Links
    #49  
Old Unix and Linux 03-23-2012
complex.invoke's Unix or Linux Image
complex.invoke complex.invoke is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 17 August 2017, 7:42 PM EDT
Location: BeiJing China
Posts: 236
Thanks: 6
Thanked 29 Times in 8 Posts
Quote:
Originally Posted by mallikarjun7777 View Post
hi its great job frm ur side.... bt how do u play... it is very scrambled...? canu discuss how did u write , i mean instead of source code u can describe the algorithm that was in ur mind??
I will write a detailed algorithm interpretation document for the whole source code line by line!
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is there picture based game under linux terminal? vistastar UNIX for Dummies Questions & Answers 18 09-02-2011 12:57 AM
text based football game? dadoprso UNIX for Dummies Questions & Answers 1 04-22-2010 12:32 PM
calling 'n' number of shell scripts based on dependency in one shell script. shashi369 Shell Programming and Scripting 1 11-03-2009 04:31 PM
Need to Write Shell Script based off of this shell command Rally_Point Shell Programming and Scripting 3 06-10-2009 05:19 PM
Shell Script Poker Game earnstaf Shell Programming and Scripting 8 03-11-2008 11:46 AM



All times are GMT -4. The time now is 05:30 PM.