in discussion ASCII board. / ASCII programming. » Visit Don's QuickBasic Programs webpage
yeah i havnt checked the code but it looks great!
Add a new page
yeah i havnt checked the code but it looks great!
i recently reformatted my pc, and i used to enjoy a specific title in an online game…the title was upside down letters that i copied from a website. before i had formatted the title read "the nyne" upside down….after formatting i se "**uu*u*"…everyone else in the game sees it fine. im assuming its a font pack or i neglected to install something but im not sure what, any help here?
Ok, ports for BaCon and R now added to the list. See full list at http://www.ascii-world.com/guessit:guess-it
Thanks Lance. Ill add your contribution today.
I assume your code should look like this
# Number guessing game for R
# This is a test program in R to demonstrate interactive
# programming and the If and While control structures
# This program must be started using the source() command
NumGuess <- 0 # Initialise this symbol, used to count the number guesses
Uname <- readline("What is your name? ")
cat("Guess a number between 1 and a 100 ", Uname, "\n")
ComNum <- as.integer(runif(1, min = 1, max = 100))
Guess <- as.integer(readline("Enter your guess: "))
NumGuess <- NumGuess + 1
while (ComNum != Guess) {
if (Guess<ComNum) {
cat("Your guess is too low!", "\n")
} else {
cat("Your guess is too high!", "\n")
}
Guess <- as.integer(readline("Please enter a new guess: "))
NumGuess <- NumGuess + 1
}
cat(Uname,", you got it! ", "\n")
cat("It took you ",NumGuess," guesses to guess right.", "\n")
The numbered entries at the beginning of the R code should be "#" which is the R indicator of a comment. Don't try to enter numbered comments in R!
Lance
NumGuess <- 0 # Initialise this symbol, used to count the number guesses
Uname <- readline("What is your name? ")
cat("Guess a number between 1 and a 100 ", Uname, "\n")
ComNum <- as.integer(runif(1, min = 1, max = 100))
Guess <- as.integer(readline("Enter your guess: "))
NumGuess <- NumGuess + 1
while (ComNum != Guess) {
if (Guess<ComNum) {
cat("Your guess is too low!", "\n")
} else {
cat("Your guess is too high!", "\n")
}
Guess <- as.integer(readline("Please enter a new guess: "))
NumGuess <- NumGuess + 1
}
cat(Uname,", you got it! ", "\n")
cat("It took you ",NumGuess," guesses to guess right.", "\n")
Hello,
i am developing a ASCII-Rendering-Engine with C++ that is based on SDL. Aim is to make a unique top view multiplayer action game with an easy map editor. Currently im rewriting the whole engine.
Check my Forum if you are intrested: http://yv3.bplaced.net/forum
asciiTeX is an ASCII equation renderer. The program can generate ASCII-art representations of mathematical equations. You can use asciiTeX to quickly insert equations in e.g. e-mails or comments in your source-code. The syntax is similar to LaTex.
Link to Binary Dinosaurus added to miscellaneous-websites-and-links
Thanks rCX. Cool to get new versions for this one. Ill add your code in guess-it page when i get back home from work.
Really cool project. Here's one in MATLAB. I was going to write one if FASM for DOS as well.
% Guess what number for MATLAB 7.5.0
% rCX. 2009, public domain
MIN = 1;
MAX = 100;
Plr_Guess = -1;
while true()
clc %Clear Command Window
Randomed = uint8(rand() * ((MAX + 1) - MIN) + MIN);
rounds = 0;
disp(['Ok, i think random integer between ',num2str(MIN),' and ',num2str(MAX),'.'])
disp('Your job is to guess what it is in as minimal tries as possible.')
disp(' ')
disp('After your every guess, ill give you hint is my number higher or lower than your guess.')
disp('You can exit by ''guessing'' 0.')
disp('Press any key to start game.')
pause
clc
while true()
rounds = rounds + 1;
disp(['This is round number: ',num2str(rounds),'.'])
Plr_Guess = str2num(input('Give your guess: ','s')); %'s' tells MATLAB to return input as string
if Plr_Guess == 0
return %exit program
elseif Plr_Guess > Randomed
disp('My number is smaller...')
elseif Plr_Guess < Randomed
disp('My number is higher...')
elseif Plr_Guess == Randomed
break
else
return %exit program
end
disp(' ')
end
disp('You got it!!!')
disp(['It took ',num2str(rounds),' rounds to guess right number.'])
disp(' ')
key = input('Do you want to play again? Enter ''y'' or ''n''. ','s');
if ~strcmp(key,'y') && ~strcmp(key,'Y')
break
end
end
Uberneat ASCII and low-res Cube by Hezad, added now in FreeBasic snippets
Thank you very much for the information, i had not considered that they were mainly designed for games. It makes a lot of sense. i'm sure i will keep visiting this site because there are several areas i have not explored yet. Best wishes with the site.
Hi Kevin (and anonymous MystikShadows)
Thanks for your feedback about the site. To be honest, i havent worked much lately with this site since i am way overworked currently.
Site has existed pertty long, i think year 4 is goin on now. This is third "version" we have complited. First was pure html/frame site, made by MystikShadows. I think i do have copy of it in my secondary computer and i have planned to keep it online too someway.
Second site was build around TikiWiki software, but it was a bit mistake for us. Pretty quickly after moving to tikiwiki, we decided to move here where we are currently.
Hopefully this site can give you information as much as you need. If not, ask and we see if we could help.
E.K.Virtanen
p.s Mystik, yeah, youre old and your heart wont even survive flight over atlantic ocean :P
The charaacters themselves were designed because back then (in 11981) when ASCII came back to the PC world, there was no extended character set (128-255). Remember that back (prior to 1981) games were being made, and people started wanting some standard characters to make games out of, for example, the smiley face for classic rogue light games, the card suits symbols, the man and woman symbol and the other you can see in the 0-31 characters). The ASCI values of those symbols are one thing and were original designed to control output on the old computers that had continuous paper instead of a monitor for output. When the hardware fonts were stored in ROM somewhere, the addded 0 to 31 graphics to for the reasons above. and with the extended character set (128-255) well text graphics became what they have been since ASCII became the standard. :).
I wrote an article on the history of ASCII here for a little different point of view.
http://www.ascii-world.com/history
Hope this helped answer your question.
And E.K. One comment about my age here, and I'm going to Finland to kick your butt..LOL.
i'm interested in the origins of the control character symbols 0 to 31 (decimal), for example in codepage 437. Wikipedia and other sites seem to say that the symbols were designed at Wang Computer. There is very little information about the graphics themselves. Does anyone know?
P.S. i've just found this site, and like it a lot.
"SilverQuest" is an Online role playing game, that was developed in 2 days. SilverQuest's art style and game play are both inspired from 1980s game found on the Atari, such as "Adventure" and <a href="http://en.wikipedia.org/wiki/Rogue_(computer_game)">"Rogue"</a>. SilverQuest is free to play, and offers a unique online habitat for hanging out, chatting, and having little adventures.
We will update the game, adding new things to do about once every 2 weeks, it'll be fun and simple, and I hope you all will give it a try when it is ready.
Thanks, and I hope you all will have fun!
Links:
You can download from my website: http://operagn.co.nr/
Or you can just click <a href="http://web.mac.com/wozilla/OGN/SilverQuest_files/Silver%20Quest.zip">here</a> to get the game.
-Wolfgang Wozniak
P.S. Yes, all of it is supposed to look like that. :P
P.P.S. No, I didn't want to make an overly large post.
Hi Gordon.
You site seems somehow familiar. Unfortunately i am not been able to do anykind of link check in long long time.
I will try to do so in next week-end and update your informations there too.
E.K.Virtanen
I am not sure if my site is still listed here perhaps under an earlier name, as I believe it was at one time. But for many years I have been producing programs in a variety of versions of BASIC which can be freely downloaded along with a fee tutorials of mine from http://www.sigord.co.uk/
Some of the progams can also safely be run online from menus displayed.
Gordon