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.


Topics - collechess

Pages: 1 [2]
16
Computer Programming / Rock Paper Scissors
« on: August 04, 2011, 09:07:36 pm »
So I just started learning python,(like 3 hours ago :)),and I created a text based rock, paper, scissors program.  However, I cannot get it to allow the player to quit.  Here is the code.
Code: [Select]
import random
while True:
    playerchoice=0
    compchoice=random.randrange(1,3)
    outcome=0
    quit="quit"
    rock="rock"
    paper="paper"
    scissors="scissors"
    while playerchoice==0:
        playerpick=raw_input("choice:")

        if playerpick==quit:
            break
            break
            break
         
        if playerpick==rock:
            playerchoice=1

        elif playerpick==paper:
            playerchoice=2

        elif playerpick==scissors:
            playerchoice=3

    if compchoice==1:
        print "vs rock"

    if compchoice==2:
        print "vs paper"

    if compchoice==3:
        print "vs scissors"

    if playerchoice==compchoice:
        print "tie"

    if playerchoice==1 and compchoice==2:
        outcome=2

    if compchoice==1 and playerchoice==2:
        outcome=1

    if playerchoice==1 and compchoice==3:
        outcome=1

    if compchoice==1 and playerchoice==3:
        outcome=2

    if playerchoice==2 and compchoice==3:
        outcome=2

    if compchoice==2 and playerchoice==3:
        outcome=1
       
    if outcome==1:
        print "u win"

    elif outcome==2:
        print "u lose"

Thanks

17
Other / Good guides to computers?
« on: June 15, 2011, 09:39:56 pm »
So I'm trying to teach some of my friends how to program.  I figured I'd start with gamemaker because its simple but still uses some of the concepts of programming.  However some of my friends are kind of computer clueless.  They don't know about file extensions, or browsers, or operating systems, but they seem willing to learn?  So does anyone know any good guides to basic computer knowledge.  If not, can someone give me somewhere to start?

18
TI Z80 / Trading Card Game
« on: June 14, 2011, 08:45:50 pm »
Not sure if this is the right thread


Before I start this project, I want to see if its possible.  My goal is to create a small trading card game in pure BASIC.  Players will have an deck of up to three cards.  When they want to battle someone, the connect the calculators, select the card they want to use, and battle.  Cards get experience from battles, and use experience to level up.  Leveling up results in raised stats.  I have not decided how cards will acquire new moves, either by buying them with exp or getting them after leveling. 

-A card's stats are stored in a list, and when the player selects a card that cards stats are stored in a temporary list. 
-Players will be able to battle and trade via the link cable

Questions
-How to store a cards name with a list.
     I thought of using the first 8 slots of the list as the name and using a string with " ABCDEFGHIJKLMNOPQRSTUVWXYZ" and sub.
-How to try to stop people from cheating.
-How to store an icon into a list.
 
Any answers would be appreciated.

19
Introduce Yourself! / Sry I just noticed this thread
« on: June 08, 2011, 11:57:45 am »
I'm a little late, but I figured I'd introduce myself.  So I'm thirteen, just finished Algebra 1, and pretty much the only one at my middle/high school who can program a calculator.  And I'm not that good.  But next year, the kids in my grade will have to get graphing calculators, so I can try to teach them.  I enjoy programming pretty much anything, if it has support for a high level language.  Can't understand asm.  Currently, I'm working in axe, BASIC, and unity, which has support for javascript and C#.  I also like drawing, soccer, and game design.

20
TI-BASIC / Remove an Element from a List?
« on: June 02, 2011, 08:40:37 pm »
Is it possible to remove an element from a list so the following elements shift to fill in where it was?  If so, how?

21
TI Z80 / My Basic Projects: Currently CardSim and Space Invaders
« on: June 02, 2011, 02:02:11 pm »
I decided to create a new topic for all of my BASIC projects instead of one for each one because they're pretty small.
CardSim
This is a simulator to shuffle and deal a deck of cards.  It finds the suit and value.  This is mainly for a set of BASIC card games I'm going to make.
Others are welcome to use it.  You need both CARDSIM and GETCARD.  To change the amount of cards dealt, change the value of O.

Space Invaders
This is a port of Space Invaders in pure basic.  So far I have movement and shooting.

22
TI Z80 / Mirror Image
« on: May 21, 2011, 05:55:31 pm »
Just a simple arcade game I'm working on.  I'm planning on adding difficulty levels, a title screen, and acceleration.
Here's a screenshot.
It's easier on calc. ;)

23
Axe / Tilemapping Problem
« on: May 16, 2011, 05:34:31 pm »
I'm making an 12x8 tilemap in Axe for a game.
How come this doesn't work?
Code: [Select]
.T
[0000000000000000->Pic0
[FFFFFFFFFFFFFFFF
[111111111111->GDB1
[100000000001
[100000000001
[100000000001
[100000000001
[100000000001
[100000000001
[111111111111
Repeat getKey(15)
For(I,0,8
For(J,0,6
{I*4+J+GDB1}->A
Pt-On(J*16,I*8,A/16*8+Pic0
Pt-On(J*16+8,I*8,A^16*8+Pic0
End
End
DispGraph
End



24
TI Z80 / Axe Slots
« on: May 15, 2011, 08:24:26 pm »
Earlier this year, before I started working with Axe, I created a pure basic slot machine.  I am now converting it to Axe.  Major changes will include graphical slots, money, and a custom menu.
Suggestions are welcome.

25
Axe / menus
« on: May 12, 2011, 08:37:24 pm »
What is the easiest way to create a menu in axe?

26
TI Z80 / Voyager X
« on: May 03, 2011, 09:39:20 pm »
I am starting to program a series called Voyager X to help me learn Axe.  It will be mainly a cross between a sidescroller and arcade game.  The first element, a game similar to tunnel, but with randomly generated obstacles instead of walls, is coming along smoothly.  However, because I'm just getting started with Axe, its probably horribly unoptimized.  I'll have the engine up as soon as I get enough posts. ;)

27
Axe / Sprite Collision Detection
« on: May 02, 2011, 05:35:35 pm »
Is the easiest way to implement collision detection on the graphscreen with 8x8 sprites using pxltest to check for each point the sprite will move to?  If not what is the best way?

Pages: 1 [2]