M30W Programming Forum

M30W is a text-based version of Scratch

You are not logged in.

Announcement

This is the development forum for M30W (also known as Emerald, do not confuse with Emerald Programming Language).
Our Non-development forums are available here

M30W(Emerald) 0.3 is out! (Download) Requires Python 2.6 or higher.
Opal 0.3(A better command line M30W) is out! (Download) Requires Python 2.6 or higher.
M30W 0.3.6 GUI barebones (Download) Requires Python 2.6 or higher and wxPython
Diamond-2 RED2 GUI Barebones (Fancy M30W editor) s out! (Download) Requires .NET Framework 3.5 or higher, does not require Python
M30W++ GUI barebones (Java M30W) Alpha 1 is out! (Download) Requires Java.


Gershmer.net, our hosting, will close in February 2011. We have not fully decided what to do with our hosting after that, but we will tell you when we decide.

Adverts

Adverts

#1 2009-11-30 21:43:22

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Joining?

I'd like to join the Emerald Team, if possible... I have an understanding of Python, even though I just started learning it yesterday...

I have some ideas for Emerald...

Last edited by The-Whiz (2009-11-30 21:43:30)


Creator of Opal

Offline

 

2009-11-30 21:43:22

AdBot
Advertisements

#2 2009-11-30 22:02:03

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Joining?

Magnie has stated that you must create before joining.

So, we need to see something first.


http://card.ly/images/vcard-green-small.png

Offline

 

#3 2009-11-30 22:07:36

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

I'm working on something right now...


Creator of Opal

Offline

 

#4 2009-12-01 00:24:05

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Here's my entry:

Opal, a programming language similar to Emerald.

Code:

# Start Program
print "Opal v0.1"
print "A text-based programming language"
print "Based on 'Emerald' by the Emerald Team"
place_holder = raw_input("Hit enter to initiate Opal")
valid_commands = ['print', 'wait']
commands = []
commands2 = []
running_opal = 1
running_program = 0
while running_opal == 1:
    print "Enter command:"
    command = raw_input("")
    if command[0] == valid_commands[0][0] and command[1] == valid_commands[0][1] and command[2] == valid_commands[0][2] and command[3] == valid_commands[0][3] and command[4] == valid_commands[0][4]:
        i = 7
        to_print = ''
        while i < len(command) - 1:
            to_print = to_print + command[i]
            i = i + 1
        commands.append('print')
        commands2.append(to_print)
    elif command[0] == valid_commands[1][0] and command[1] == valid_commands[1][1] and command[2] == valid_commands[1][2] and command[3] == valid_commands[1][3]:
        i = 5
        to_wait = ''
        while i < len(command) - 7:
            to_wait = to_wait + command[i]
            i = i + 1
        commands.append('wait')
        commands2.append(to_wait)
    elif command == 'help':
        print "Opal help"
        print ""
        print "Here are Opal's commands:"
        print "print 'text' - prints text"
        print "wait # cycles - waits the specified # of cycles; 3 cycles is about 1 second."
        print "list - lists the program"
        print "run - runs the program"
        print ""
    elif command == 'list':
        print "Program:"
        print ""
        for i in range(0, len(commands)):
            if commands[i] == 'print':
                print "print '" + commands2[i] + "'"
            elif commands[i] == 'wait':
                print "wait " + commands2[i] + " cycles"
        print ""
    elif command == 'run':
        print "Running program:"
        print ""
        for i in range(0, len(commands)):
            if commands[i] == 'print':
                print commands2[i]
            elif commands[i] == 'wait':
                for j in range(0, int(commands2[i])):
                    for k in range(0, 1000000):
                        place_holder = 0
        print ""
    else:
        print "That is not a valid command."

It's for Mac, so it might not work for Windows...

Last edited by The-Whiz (2009-12-01 02:48:10)


Creator of Opal

Offline

 

#5 2009-12-01 16:15:40

markyparky56
Hi...
From: Scotland
Registered: 2009-10-08
Posts: 910
Website

Re: Joining?

Is Emerald a programming laguage you made? or is i an official one like ruby, java, and the rest of them.


I am A M30Wr.
I always get the last word.

Offline

 

#6 2009-12-01 17:39:20

filo5
Diamond Creator
From: Catford, London, UK
Registered: 2009-10-08
Posts: 253
Website

Re: Joining?

Emerald is language made up by Magnie, however we want to make it as official as Scratch.

The-Whiz: Erm... Do you know C#? If so, you can also join development of Emerald+ Editor. Just make something in C# (WPF or Windows application). Try MS Visual C# Express Edition (I use it).


http://img8.imageshack.us/img8/429/filo5newsigsg1planf.png

Offline

 

#7 2009-12-01 21:09:56

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

filo5 wrote:

Emerald is language made up by Magnie, however we want to make it as official as Scratch.

The-Whiz: Erm... Do you know C#? If so, you can also join development of Emerald+ Editor. Just make something in C# (WPF or Windows application). Try MS Visual C# Express Edition (I use it).

No. I can't, anyway. I have a Mac.

Last edited by The-Whiz (2009-12-01 21:55:03)


Creator of Opal

Offline

 

#8 2009-12-02 02:53:03

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

The-Whiz wrote:

filo5 wrote:

Emerald is language made up by Magnie, however we want to make it as official as Scratch.

The-Whiz: Erm... Do you know C#? If so, you can also join development of Emerald+ Editor. Just make something in C# (WPF or Windows application). Try MS Visual C# Express Edition (I use it).

No. I can't, anyway. I have a Mac.

Anyone?


Creator of Opal

Offline

 

#9 2009-12-02 03:18:09

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Joining?

That is actually very nice The-Whiz, there is an error with the 'wait' command:

Code:

Traceback (most recent call last):
  File "/home/user/Opal2.py", line 55, in <module>
    for j in range(0, int(commands2[i])):
ValueError: invalid literal for int() with base 10: ''

Any idea what went wrong?


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#10 2009-12-02 03:30:32

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Magnie wrote:

That is actually very nice The-Whiz, there is an error with the 'wait' command:

Code:

Traceback (most recent call last):
  File "/home/user/Opal2.py", line 55, in <module>
    for j in range(0, int(commands2[i])):
ValueError: invalid literal for int() with base 10: ''

Any idea what went wrong?

Did you use an integer as the number of cycles to run?

By the way, my Python in broken, so I won't be joining anyway unless I can get it working again...

Last edited by The-Whiz (2009-12-02 03:31:55)


Creator of Opal

Offline

 

#11 2009-12-02 04:50:04

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Joining?

Like 1? Am I supposed to put any extra punctuation?


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#12 2009-12-02 12:09:08

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Yeah, just a number. "run # cycles" with the number replacing the #.


Creator of Opal

Offline

 

#13 2009-12-02 16:59:54

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Joining?

Oh so like:

Code:

run 1 cycles

?


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#14 2009-12-02 21:02:38

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Magnie wrote:

Oh so like:

Code:

run 1 cycles

?

Yes.


Creator of Opal

Offline

 

#15 2009-12-02 21:52:49

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Joining?

Okay, I thought you needed to do:

Code:

wait 1
print Hiya

BTW: Can we use Opal to remake Emerald? :D


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

#16 2009-12-02 22:15:16

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Joining?

Magnie wrote:

BTW: Can we use Opal to remake Emerald? :D

I'll pretend I'm The-Whiz.

What The-Whiz would say wrote:

If you put me on the team...


http://card.ly/images/vcard-green-small.png

Offline

 

#17 2009-12-02 22:43:25

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Sure, if you let me join the team...

After all, if you do that, I DID provide the base.

My python is working again, so I'll be able to help...

Last edited by The-Whiz (2009-12-02 22:59:35)


Creator of Opal

Offline

 

#18 2009-12-03 00:22:23

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Joining?

Oh yeah... Opal DOES works on Windows.

EDIT: I'll upload a .py of Opal in a second...


http://card.ly/images/vcard-green-small.png

Offline

 

#19 2009-12-03 00:22:45

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

OK, that's good.


Creator of Opal

Offline

 

#20 2009-12-03 00:24:43

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Offline

 

#21 2009-12-03 00:28:24

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Looks good. :) Does this mean I'm officially on the team?


Creator of Opal

Offline

 

#22 2009-12-03 00:30:50

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Joining?

The-Whiz wrote:

Looks good. :) Does this mean I'm officially on the team?

Unfortunately, I don't have the Administrator power on this forum to give you your Moderator privileges/Put you on the tean. By the time Magnie shows up tomorrow, chances are you're on the team.


http://card.ly/images/vcard-green-small.png

Offline

 

#23 2009-12-03 00:33:38

The-Whiz
Opal Creator
Registered: 2009-11-29
Posts: 48

Re: Joining?

Gershmer wrote:

The-Whiz wrote:

Looks good. :) Does this mean I'm officially on the team?

Unfortunately, I don't have the Administrator power on this forum to give you your Moderator privileges/Put you on the tean. By the time Magnie shows up tomorrow, chances are you're on the team.

OK. Thanks. :)

Last edited by The-Whiz (2009-12-03 00:33:47)


Creator of Opal

Offline

 

#24 2009-12-03 00:35:33

Gershmer
Admin
From: Newton Centre, Massachusetts
Registered: 2009-10-08
Posts: 515
Website

Re: Joining?

The-Whiz wrote:

Gershmer wrote:

The-Whiz wrote:


Looks good. :) Does this mean I'm officially on the team?

Unfortunately, I don't have the Administrator power on this forum to give you your Moderator privileges/Put you on the tean. By the time Magnie shows up tomorrow, chances are you're on the team.

OK. Thanks. :)

The reason why I say "chances are" is because Magnie was focusing on switching to "def" written programs (in Python, I mean) in the past. But s/he wasn't requiring it or anything.


http://card.ly/images/vcard-green-small.png

Offline

 

#25 2009-12-03 01:39:30

Magnie
> I am Ninja! <
From: Polaris, the planet
Registered: 2009-10-08
Posts: 321
Website

Re: Joining?

Uh huh, "tomorrow" ... Actually, I can re-edit Opal for Defs, but Whiz, I will take your powers if you keep abusing it. I'll add you on the team Whiz...


- I speak IF Common -
  ~ Magnie Mozios ~

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting