Sponsored Content
Top Forums Shell Programming and Scripting Tetris Game -- based on a shell script (new algorithm) Post 302606584 by tip78 on Monday 12th of March 2012 06:09:23 AM
Old 03-12-2012
huaihaizi i ment not to change [] -> x
i ment other figures from classic tetris
tip78
 

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. 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

3. UNIX for Dummies Questions & Answers

Is there picture based game under linux terminal?

Is there picture based game under linux terminal? Just like Supermario under DOS. (18 Replies)
Discussion started by: vistastar
18 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. Programming

Tetris Game in C++

Open Source Project: https://github.com/yongye/cpp Ported from the shell: Shell (0 Replies)
Discussion started by: complex.invoke
0 Replies

7. 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

8. Shell Programming and Scripting

Understanding Tetris-game code. newbie

Hi All, Been trying to understand the code in tetris game (in the sticky threads) & i know i have a alot reading /practice to do. it's using advanced methods with arrays and arithmetic and would much appreciate if some one can guide me to good books that's not outdated that would help me take... (0 Replies)
Discussion started by: xcod3r
0 Replies

9. 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

10. Shell Programming and Scripting

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... (3 Replies)
Discussion started by: Othmane
3 Replies
SDTS2DEM(1)						      General Commands Manual						       SDTS2DEM(1)

NAME
sdts2dem - Convert a 24K USGS SDTS DEM to a DEM in the `classic' format. SYNOPSIS
sdts2dem [-L] | [sdts_dem_file.ddf [output_file_name]] DESCRIPTION
The U.S. Geological Survey (USGS) provides sites on the Internet with a lot of Digital Elevation Model (DEM) data. Depending on the reso- lution of the data, it may be available in one of at least three different formats: `classic' DEM format, a newer version of the `classic' format, or Spatial Data Transfer System (SDTS) format. The 24K DEM data (which are also called 7.5-minute DEM data) are only available for free-download in the SDTS format. The drawmap program can read the files in SDTS format; but the SDTS data come in the form of archives, each of which contains numerous files. It may sometimes be more efficient, and perhaps simpler, to store the data in the `classic' format. Sdts2dem is a program that converts each SDTS archive into a single classic-format DEM file. So far, sdts2dem only works with 24K DEM data, mainly because I haven't got any other data available to test against. If you invoke the program with the "-L" argument, it will print some license information and exit. In normal use, the first argument is an SDTS file name. Each SDTS DEM archive should contain one or more files with names of the form ????CEL@.DDF, where the '?' symbol stands for any single character, and the '@' symbol stands for any single digit. If you provide a single such file as an argument, sdts2dem will produce a clas- sic-format DEM file, based on the given SDTS file and the other files in the SDTS archive. (When you unpack the SDTS archives, you can change all of the resulting file names to all lower case and/or compress all of the files with the gzip program. If you are going to change to lower case, change all of the files. If you are going to compress the files, compress all of them.) The USGS takes each 1-degree-square block of latitude and longitude, and divides it into an eight-by-eight grid of 7.5-minute-square `quads'. The rows of this grid are labeled 'a' to 'h' from bottom to top, and the columns are labeled `1' through `8' from right to left. Each quad is then referred to by a name of the form `AABBBCD', where `AA' is the latitude of the southeast corner of the 1-degree block, `BBB' is the longitude of the southeast corner, and `C' and `D' represent the corresponding row and column labels. If you don't specify an output file name, the output file produced by sdts2dem will have the form `AABBBCD.dem'. If you specify an output file name, then your name will be used instead. LIMITATIONS
The converted files are in the newer version of the `classic' format. This newer format is theoretically backwards compatible with the older format, but has a bunch of new fields added to the file header (in space that the older format specified as blank). Most of these new fields will also be blank in the converted files, because their values are embedded in long human-readable text strings in the SDTS files, and I didn't consider it worth the effort to write a bunch of finicky code to dig them out. Three of the new fields are included, though: the horizontal datum, the vertical datum, and the vertical datum shift. These fields are useful in converting back and forth between coordinate systems, and in converting elevations to newer measurement scales. Sdts2dem will try to populate all of the fields specified in the original `classic' format. However, you may note some differences in the first 140 bytes of the header. One such difference is that the latitude and longitude of the southeast corner usually appeared in bytes 131 through 139 of the original `classic' format, in a truncated form. (The bytes in the DEM specification are numbered starting from 1.) In the new `classic' format, these two values are in bytes 110 through 135, in all of their un-truncated glory. As another example, sdts2dem doesn't even try to recover the free-format text field because it usually duplicates information present elsewhere, and because it isn't clear that we would end up with anything useful after automated conversion to SDTS and automated conversion back to `classic' DEM. Some floating-point numbers will have a different format from their original USGS versions. The USGS files normally put the first signifi- cant digit after the decimal point, while sdts2dem puts it in front of the decimal point. The actual numeric values are the same, but the format differs. SEE ALSO
drawmap(1), sdts2dlg.1n Jul 24, 2001 SDTS2DEM(1)
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy