Jump to content

help in RAPTOR

- - - - -

  • Please log in to reply
No replies to this topic

#1
netfirecat

netfirecat

    Newbie

  • Members
  • PipPip
  • 10 posts
I use RAPTOR because it is what i know best. I know Python, but i hate it... I don't know any other programming programs. In a program i'm tryin to write for fun, I'm writing a program designed to play a ccg(collectable card game) without the two computers connected. So far it will keep up with the contents of the player's deck and what is drawn. to further the program, i'm trying to write a way to return a card from somewhere into the deck, take a specific card, or display what cards are left in the deck.
Back to my questions: Is there a way to show a timestamp on certain output?
Example: When someone draws a card or searches their deck, it gives a timestamp for each time or something..

If the user presses (enter) without placing an input, that variable equals (""). If that vairable is ever compared to a variable, i get a (cannot compare values: "") error. To prevent the (cannot compare values: "") error, i placed a loop that makes sure the variable doesn't equal (""). when it passes, if the variable is a number, i place it in another loop and compare it to the highest and lowest values availible, but then it returns (cannot compare values). Any ideas? I attached screenshots of a similiar algrithm that gave me the same response. help1 is only checking against "", help2 is checking that the input is a correct answer. If asked, i'll try to write another example.

Attached Files






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users