Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Stupot

#6201
Is anyone here familiar with Pascal?
I'm using it for my Computational Linguistics course.  I'm okay with the stuff I've actually been taught and ned to know, but I'm trying to achieve something extra, just for neatness sake.

Basically the program asks the user to input a string of characters and then checks the string against a given 'language' and then accepts or rejects it accordingly.

I've achieved that pretty easily, but the trouble is you have to re-run the program every time you want to try it.  I want the program to keep going back to the beginning whenever the string is rejected, with a message saying 'please try again' or something, and then get the program to stop once the user inputs an acceptable string.

Basically I need the program to keep looping until the currentstate is 'A' (accept).

Sounds like it should be easy, but if tried with IF, WHILE and REPEAT statements, and can't seem to get it to work...

Any ideas?  Below is the 'Main Program' of the script.  I'm pretty sure the commands I need will be inserted here somewhere, but I'm obviously doing something wrong.

Code: ags

{ *** Main Program *** }

begin

  write ('Input a string consisting of the symbols a, b, c, d, and e: ');
  readstring (string, stringlength);
  process (currentsymbol, currentstate, string, stringlength);

  if currentstate = 'A' then
    writeln ('String Accepted :-)');

  else
    writeln ('String Rejected :-(');

end.


If you think it would help to see the whole code, I can provide it, but I'm guessing it's not necessary.

Cheers guys.
#6202
Sorry to state the bloody (pun intended) obvious... but vampires are mythical creatures.  If they were real I'm sure their blood-sucking would be very illegal, and they would be punished accordingly if caught.

Paedophiles are very real.

Also, this word 'preference' does not adequately describe paedophilia for me.  Some gentlemen prefer blondes, but most of them wouldn't go around stalking, groping, or even raping women just because they are blonde... if they did they probably have some condition called something like "blondiephilia".

I like Asian girls.  It's not a fetish, or a secret sexual desire, it's a preference.

Unlike other "preferences", paedophilia is a ticking bomb, in which there is a man (or woman) fighting a battle within himself that, without help, he is ultmately going to lose, and when he does it's not just the child that's going to suffer.  They cause a LOT of suffering.  When a paedophile acts upon his "preferences" it can cause whole families to fall apart, court cases, depression, attempted suicides (and presumably some successful ones too).
#6204
I'm not easily offended by games/TV/film etc... I'm all for a bit off bad taste.  I'm more easily offended by personal things such as if someone says (or even implies that they think) I'm a liar. 
#6205
Quote from: Tuomas on Fri 19/03/2010 13:16:04
Have to tell you this, Stupot: I showed that funny interactive image of yours to my girlfriend. Not a good idea... She ended up crying for ten minutes and now she hates me :/ Remind me to never do that again.

Shit, sorry dude. I hope I haven't caused any grief.

(P.S. you didn't happen to get it on video by any chance did you, Tuomas?  ;))

@Quetionable:  I think I've spotted Wally in your Joker.  Pretty funny!
#6206
General Discussion / Re: Mitsuku
Thu 18/03/2010 03:32:21
Yeh, ELIZA is like the original attempt at natural langauge processing on computers.  Very influential at the time, but proper rubbish really.  Mitsuku pisses all over her.
#6207
General Discussion / Re: Homonyms
Thu 18/03/2010 03:18:08
Well lets take any number of other such compounds... would you call 'cauliflower' and adjective because it appears in the phrase 'cauliflower ear'?  Well, you might, but you'd be wrong.

I could, if I wanted to, have a play about and come up with something like Doone: 'his ears were cauliflower'...
Or as Snarky has done: 'a very cauliflower ear', or 'the left ear was more cauliflower than the right one'.

But these are all examples of a bit of word-play based on the compound noun 'cauliflower ear' and by no means give the word 'cauliflower' license to call itself an adjective.

Bow-legged is exactly the same... except it has a hyphen, so to me 'bow' is even LESS eligible for adjectivisation than 'cauliflower' is.

Is 'club' an adjective because of 'club-foot'?
Is 'cock' an adjective because of 'cock-eyed'?
Is 'beer' an adjective because of 'beer belly'?

I'm going to argue 'no' in all cases.
#6208
General Discussion / Re: Homonyms
Wed 17/03/2010 16:53:33
'bow-legged' is a single unit. The hyphen gives that away.

It seems Ms. Doone has taken that set unit and played with it.  Indeed she seems to have cleverly used it as an adjective in this way, but this in an exception to the trend, and not enough to change the definition of the word.
#6209
General Discussion / Re: Same sound words
Tue 16/03/2010 15:33:03
Quote from: SSH on Tue 16/03/2010 14:57:08
bow legged

bow tie

bow lifeboat


I'm not even sure what a 'bow lifeboat is', but I think 'bow-legged' is a single, hyphenated unit.  'Bow tie' is a compound noun.  I'd say 'bow' here is a noun, even if it does kind of modify 'tie'.
#6210
General Discussion / Re: Same sound words
Tue 16/03/2010 03:12:34
French-Canadians speak Canadian-French... hmm

Talking of cross-linguistic homophones, how about 'oui' vs. 'wee'?
Also, in Japanese, I've recently learnt the word for kind of 'investigation' is 'chousa', whch is pronouced very much like 'Chauser', the Cantebury Tales chappy.
#6211
General Discussion / Mitsuku
Tue 16/03/2010 01:34:03
Has anyone come across Mitsuku or anything similar?

I finally got around to playing TheJBuger's Chatroom yesterday, and when I finished it, I decided to do a seach for similar stuff...  Basically, Mitsuku has some incredible AI, and she learns more based on the conversations you have with her.  It's really fun teaching her stuff and sometimes the conversation is startlingly natural (other times it's totally rubbish).  I got banned yesterday for swearing at her 5 times, haha.

Give it a go.
#6212
Is he not playing?  Looks real enough to me.  I've seen better, but still, if I could play like that I'd be content.

There is a LOT of crap on Youtube, but then there's a lot of crap on the internet as a whole, and Youtube is just a tiny subset of the whole internet.  There is a lot of good stuff on there too, and luckily for you, you get to pick and choose what you want to watch.
#6213
Quote from: SSH on Mon 15/03/2010 23:25:13
And how does posting a picture of us on the Great Wall put my kids at risk, exactly?

Hadrian's wall would have ben a lot cheaper ;)
#6214
Or AGS Top Trumps?

Just throwing it out there...
#6215
Critics' Lounge / Re: Sprite
Mon 15/03/2010 19:32:48
Very nice.  I love it too.  But a couple of small things bother me a bit:

1) the pixel-wide gap between the legs is distracting against the bright background.  You could probably get away with just filling it balck (or dark).  2) The diagonal positioning of the jacket's buttons.  Maybe you meant to do that for swashbuckling effect but it looks kind of odd to me.

Anyway. If you can animate that I'd be well impressed.
#6216
General Discussion / Re: Same sound words
Mon 15/03/2010 19:22:45
Quote from: Ryan Timothy on Mon 15/03/2010 18:54:18
Quote from: Ali on Mon 15/03/2010 18:43:36
I pronounce 'fort' and 'fought' the same.

They shouldn't be pronounced the same at all. lol

Shouldn't they?
#6217
I've just finished the first draft of a design for a short room escape game that involves the player doing a bit of research on the internet to help him solve some of the puzzles... It's called 'The Cupboard', and the character is (you guessed it) trapped in a cupboard.  There are many puzzles within the cupboard, but some end up rewarding you with URLs which will lead to webpages that will contain information useful for solving the 3 'main' puzzles.

Then I remembered this discussion...  See, It's a first-person game, so essentially you are the one trapped in the cupboard... a cupboard with no computer and no internet access, so making the player use outside knowledge to solve the puzzles would be an example of metagaming.

As a player, would this bother you, or would you happily embrace this aspect of the gameplay?  (personally I'm really pleased with the result and can't wait to implement it into an actual game.)

I could solve the problem by plonking a working, internet-ready laptop in the cupboard and having a message like 'Ooh, that's handy.  I have full internet access' when clicked on, which would give the player license to exit the game window (it will be windowed) and use the real-life internet, as though it were in-game.
#6218
You do occasionally get the odd one which isn't hentai.  The only trouble is they mainly just consist of reading a bunch of dialogue and then choosing a path.  But sometimes the story is quite good.

Have you played 'Fatal Hearts'?  It's alright... starts of really girly and emo, but soon gets quite dark and nasty... pretty good really, although I didn't finish it.

http://www.hanakogames.com/fatal.shtml

I wouldn't say adventure games were the Japanese's strong suit, but they do make some awesome 'escape the room' games.
#6219
I'm glad it's not just me getting spammed...

Listen hun, I'm about to start my webcam... I tell you what, you can watch for free coz your special or something... just give me your credit card details like an idiot... cheers.
#6220
General Discussion / Re: Robot unicorn attack!
Thu 11/03/2010 00:38:15
Quote from: Crimson Wizard on Wed 10/03/2010 21:37:44
BTW, I think that the longer you hold jump button, the longer jump is. Am I correct?

Indeed... also, the faster the game gets the more ground your jumps cover.
SMF spam blocked by CleanTalk