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.

Messages - Michael_Lee

Pages: 1 2 [3] 4 5 ... 70
TI Z80 / Re: Croquette IDE
« on: November 17, 2011, 08:15:31 pm », I'm not really sure what to say then.  You're not really giving me enough info to help you with.

Are you sure it isn't a problem with TIConnect?  Have you tried transfering other files? 
Have you tried transferring your program to Wabbitemu?  If so, what did it do? 
Are you sure it's actually overwriting the old program?  Try saving it under a different name and transferring?

TI Z80 / Re: Croquette IDE
« on: November 17, 2011, 08:05:52 pm »
Okay.  Tell me exactly what you typed into croquette and exactly what you did to save the file.

TI Z80 / Re: Croquette IDE
« on: November 17, 2011, 07:02:39 pm »
Lol, ok. It's not in the programs when I transfer it to the calc, but I think I found the file somewhere within the memory menu.

Wait a moment, are you trying to transfer Croquette IDE to you calculator?

TI Z80 / Re: Croquette IDE
« on: November 17, 2011, 06:58:41 pm »

Edit: After like 5 attempts, it now works


* epic7 slaps the creator

I think the new prgm is appearing somewhere on the memory list tho. But not in the prgms

Please describe what you want to do, what you tried, what happened, and what you expected.

"ITS SCREWIN' UP!' is a bit on the vague side :)

Also, what do you mean by this?
I think the new prgm is appearing somewhere on the memory list tho. But not in the prgms

TI Z80 / Re: Croquette IDE
« on: November 16, 2011, 10:45:25 pm »
Yup, that's a bug.

I fixed it so that it will now the parser will ignore any characters it doesn't recognize instead of just hanging there.

I don't really have time to do make an exe until the weekend though (and do some other minor fixes) so if you need an update, just download a fresh copy from the repository.
Necro, but... :P
I can provide builds for Linux and Windows if you want.
Also, can I submit patches to fix some of those issues on your bug tracker? :)
Sure, that would be great!

Let's see -- do I need to add you as a contributer or something so that you can submit patches?  (not sure exactly how Google Code works) If so, post or PM me your email address/google account.

TI Z80 / Re: Zedd Physics Library (BETA)
« on: November 15, 2011, 08:37:50 pm »
In that case, I'm assuming that Zedd can't draw grayscale sprites (unless you modify it)?

TI Z80 / Re: Zedd Physics Library (BETA)
« on: November 15, 2011, 08:22:01 pm »
A few questions about Zedd:

When using Zedd, is it the coder's responsibility to run through all the existing objects and draw/otherwise render them to the screen, or does Zedd handle that?

r6 is the sprite number.  What precisely is the sprite number?
I looked in the source for the demo -- I'm not entirely sure how you're drawing the objects. 
Do all sprites have to be pointed to Str0SP, or does it not matter?

Can you change the buoyancy after setting it?

Axe / Re: Having trouble with a bit of code.
« on: November 15, 2011, 02:27:02 am »
I don't own an nspire, but once when I bricked a friend's nspire (by accident, I swear!) it would only reset after I held down the reset button in the hole for like 10-15 secs.  Pressing briefly didn't seem to trigger the full reset.

Miscellaneous / Re: What software do you use to program?
« on: November 14, 2011, 07:11:23 pm »
Apart from programming on-calc (Axe, TI-Basic, etc.), I use mostly tools I made/helped make on the computer.

For my IDE, I use a combination of Croquette to convert text files to .8xp and gedit as my primary editor (with a custom syntax-highlighting plugin I made).

I use Wabbitemu/wxWabbitemu to make screenshots or compile+test Axe programs on my calc.

I've actually ended up using Gedit for most of the coding I do (on Linux) -- it has syntax highlighting, which is all really need :)

Other Calculators / Re: LogoMagic
« on: November 14, 2011, 01:19:00 am »
Can it let us make entire games by the way?
I know that some versions of Logo can, but I think Logo's mostly meant for pretty graphics.

@Darl, Michael
Why not give me the logo code, I'll try it on my calculator :D

It might need some editing, but here you go:
I don't trust myself atm to make any changes to the code, so I just added comments.
Also, I think the trig functions take in radians in Python, but I liked degrees, so I have sort of a conversion thing going on in there. 

Code: [Select]

from turtle import *
from math import *

def main():
    # Setting up a screen 1000 by 1000 pixels
    setup(1000, 1000)

    # This code is designed so that you simply call the functions
    # you want to use down below to draw the appropriate figure.

    drawStellarFigure(5, 5, write_total=False)

def drawTriNum(side_length, tilt=60, distance=10, dot_size=5, write_total=True):
    """Draws a triangular number (1, 3, 6, 10, etc...)
    side_length = the length of a single side. 
        1 -> Triangle with area of 1
        2 -> Triangle with area of 3
        3 -> Triangle with area of 6
    tilt = The way the triangle is angled.
    distance = The distance (in pixels) between each dot
    dot_size = The size of each dot (in pixels)
    write_total = Disregard this, don't bother translating.

    start_position = position()
    start_heading = heading()
    total_dots = 0
    for i in range(side_length):   
        for j in range(i):
        for k in range(side_length - i):
            dot(dot_size, "black")
            total_dots += 1

    # Don't bother translating anything from here to the Return.
    if write_total:
        forward((side_length - 1) * distance / 2 + 1)
        write(str(total_dots), move=False, align="center",
              font=("Times New Roman", 12, "normal"))
    return total_dots

def drawStellarFigure(vertex_num, shell_num, warp=1, distance=10, dot_size=5, write_total=True):
    """Draws a stellar figure (like a star).

    vertex_num = the number of vertexes
    shell_num = how many layers there are
    warp = The higher the warp, the more angular the figure.
    distance = Sort of like the distance between dots
    dot_size = The size of each dot (in pixels)
    shell_num -= 1
    start_position = position()
    start_heading = heading()
    dot(dot_size, "black")
    total_dots = 1
    shell = []
    for i in range(shell_num):
        for j in range(vertex_num):
            for k in range(2):
                if k:
                    forward(distance * (i + 1) * warp)
                    forward(distance * (i + 1))
                dot(dot_size, "black")
                temp1 = radians(180/vertex_num)
                temp2 = acos(sin(temp1/warp))
                right(90 - degrees(temp2) + 180/vertex_num)
                total_dots += 1
            setheading(start_heading - 360/vertex_num*(j+1))
        for pos in shell:
        shell = []

    # Don't translate this 'if' statement
    if write_total:
        forward(distance * (shell_num + 3))
        write(str(total_dots), move=False, align="center", font=("Times New Roman", 12, "normal"))
    return total_dots

if __name__ == "__main__":
    mainloop()    # This runs the actual program

Other Calculators / Re: LogoMagic
« on: November 14, 2011, 12:25:02 am »
I'm really fond of Logo myself.

I once had a large math paper and used the Turtle module in Python (which is pretty much a copy of Logo) to construct a bunch of pictures/geometric shapes for it.  I was the envy of my math class :D

Spoiler For Spoiler:

Spoiler For Spoiler:

Math and Science / Math problem: odd digits and probability
« on: November 11, 2011, 01:36:48 pm »
I was doing a problem for a math competition
How many five digit integers satisfy the following:
- All the digits are odd
- The difference between adjacent digits is 2
An example of such a number is 13535 or 57979
...and wanted to generalize it to "How many answers satisfy the conditions for n-digits"?

For example, given one digit, there are 5 possibilities {1, 3, 5, 7, 9}...
and given two digits, there are 8 possibilities {13, 31, 35, 53, 57, 75, 79, 97},

I managed to figure out a solution that didn't involve drawing out ridiculously large probability trees to brute-force the answer, but I want to know if there's an algorithmic or better way to solve the problem. 

Here's my solution below (it's an exact copy of an email I sent to my teammates), but I don't really understand why my solution works. (spoiler'd for length).

Spoiler For Spoiler:

So, I was puttering around with Python, trying to find patterns in the problem,
and hit upon a method for finding the answer.  The only thing is, I have no clue how it works.
It's also kind of difficult to explain without using paper + pencil
(or whiteboard + marker, which is much cooler), but I gave it my best shot.

(If possible, view this email in a monospace font -- try copying and pasting into notepad)

* * *

In short,
If the answer has one digit, then there are 5 possibilities
1 + 1 + 1 + 1 + 1 = 5

If the answer has two digits, then there are 8 possibilities
1 + 2 + 2 + 2 + 1 = 8

If the answer has three digits, then there are 14 possibilities
2 + 3 + 4 + 3 + 2 = 14

Here are a bunch more possibilities:
1   1   1   1   1     = 5
1   2   2   2   1     = 8
2   3   4   3   2     = 14
3   6   6   6   3     = 24
6   9   12  9   6     = 42
9   18  18  18  9     = 72
18  27  36  27  18    = 126
27  54  54  54  27    = 216
54  81  108 81  54    = 378

If you notice, each number in the sequence is equal to the sum of numbers
that are to the left to the right on the row above it.

3  6  6  6  3
 \   /
6  9  12 9  6

(9 is the sum of 3 and 6, for example)

So basically, this is like Pascal's triangle, except it's more a rectangle with
some fiddly bits.

* * *

If you're wondering what the numbers represent, they equal the number of
possibilities each branch in the tree has or the count of the number in the
final branch of the tree (that didn't make sense, did it).

An example (for three digits):

   1          3          5          7          9
 .   3      1   5      3   7      5   9      7   ,
    1 5    . 3 3 7    1 5 5 9    3 7 7 .    5 9

Each layer represents the number of possibilities in the tree.
If there is only one digit, there's only
1 1 1 1 1 possibilities.

If there are two digits, there's
1 2 2 2 1
possibilities per branch.
However, there is exactly
1 one
2 threes
2 fives
2 sevens
and 1 nine
given two digits.

If there are three digits, there are
2 3 4 3 2
possibilities per branch.
However, there's
1 one
3 threes
4 fives
3 sevens
and 1 nine in that layer.

* * *

Isn't this weird?

-- Michael.

News / Re: Deep Thought becomes manager
« on: November 08, 2011, 11:13:37 pm »
Congratulations, Deep Thought!

I think you really deserve this one.

Axe / Re: Axe beginner - n00b tipz?
« on: October 30, 2011, 11:08:39 pm » be honest, I need to start doing that myself.
yes, I've been waiting for Lights and Axe Minewseeper 1.00 for over a year now. <_<



Another tip: don't be recklessly overconfident and be like "oh, I can completely rewrite a game it took me several months to make from scratch because I'm so much smarter now!"  (lesson learned)

News / Re: TI-Boy SE Beta pre-release
« on: October 30, 2011, 11:03:32 pm »
Wait, hang on -- music is fixed?

For some reason, I recall that somewhere I was informed that music wasn't supported?

*Michael_Lee is confused
4-channel sound was added in Beta 0.1.06 :)

Sometime I'll have to add in the option for 2-channel sound like in TI-Boy Alpha, which takes less CPU time.

Daaang.  I must have missed quite a few updates.
And performance/responsiveness is still good?

Pages: 1 2 [3] 4 5 ... 70