1. Learning Euphoria

Dear Euphoria group,

I am just starting to learn Euphoria, and am wondering if there are any good
resources out there for learning it. I've already found the Euphoria Tutorial,
which is (very) good for me, but does anyone know of any other resources?
Has there ever been talk of a 'mentor' sort-of program, where the experienced
programmers pass on their knowledge to the beginners? Any help would be
greatly appreciated.

Chris Cox
cox.family at sk.sympatico.ca

new topic     » topic index » view message » categorize

2. Re: Learning Euphoria

Chris Cox wrote:

> Has there ever been talk of a 'mentor' sort-of program, where the experienced
> programmers pass on their knowledge to the beginners? Any help would be
> greatly appreciated.

naw i haven't found anything like that...  just ask anything you want in
the listserv and it'll get answered...  the euphoria language is really
straight-forward, so once you learn the basics of it (like the syntax
and the variable structures), you're pretty much set...  sorry :)

> Chris Cox
> cox.family at sk.sympatico.ca

nice to see someone else from saskatchewan :)

--

 . m i k e   b u r r e l l .
. http://mikpos.home.ml.org .
  .  mikpos at softhome.net  .

new topic     » goto parent     » topic index » view message » categorize

3. Learning Euphoria

Hi Guys
Sorry about the first e-mail I was mad.The promble is that When I try to
write a simple program like the draw_line just to draw a straght line I can
not do that I do not understand draw_line
(BLUE,{{100,100},{200,200},{700,900}}) their are 3 sets of numbers ? How is
the screen made up as how many rows,col.The basic I know all you had to do
was for i = 1 to 50:draw(green,5):next i ( 5=pixels at a time) also how do
you put a whole string of numbers into it like from a data file.What I am
trying to do right now is draw a chess board on the screen and fill the
squiers with diff colors.I want to program in broad games,quiz games chess
stuff all with good graphics.I never quit when a program pisses me off like
this.

David Mosley
ampenter at sisna.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Learning Euphoria

On Mon, 26 May 1997 18:22:16 -0600 David Mosley <ampenter at SISNA.COM>
writes:

>I do not understand draw_line(BLUE,{{100,100},{200,200},{700,900}})
> their are 3 sets of numbers ?

There are 3 sets of numbers this will create two lines.
One from (100,100)-(200,200) and one from (200,200)-(700,900)

First you must be in a graphics mode.

I believe you must include graphics.e ????
then

if graphics_mode(19) then
  puts(1, "Failed to change modes")
  abort(1)
end if

--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Learning Euphoria

At 06:22 PM 5/26/97 -0600, you wrote:

>Hi Guys
>Sorry about the first e-mail I was mad.The promble is that When I try to
>write a simple program like the draw_line just to draw a straght line I can
>not do that I do not understand draw_line
>(BLUE,{{100,100},{200,200},{700,900}}) their are 3 sets of numbers ? How is
>the screen made up as how many rows,col.The basic I know all you had to do
>was for i = 1 to 50:draw(green,5):next i ( 5=pixels at a time) also how do
>you put a whole string of numbers into it like from a data file.What I am
>trying to do right now is draw a chess board on the screen and fill the
>squiers with diff colors.I want to program in broad games,quiz games chess
>stuff all with good graphics.I never quit when a program pisses me off like
>this.

There are a few ways you can manage this. Seriously, the best way is to draw
a picture (in .BMP format, or something else loaded with PIC_LOAD.E), and
use draw_image() to put it on the screen. Another way is to make TWO sequences :
{black,black,black,black,brown,brown,brown,brown,...} and one that is
viceversa and alll you have to do is use pixel({the sequence...},{the
location}) over and over until you have a chess board. Yes, even I don't
know what I am talking about. Better ask David Gay.

>David Mosley
>ampenter at sisna.com

So exactly what IS your real name? Scott or David?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The Reaper  (J. Lays)   http://www.geocities.com/TimesSquare/Alley/4444/
reaper at auracom.com      Check out my Euphoria Games page at:
            -= http://www.geocities.com/TimesSquare/Alley/4444/eugames.html
      ........................
     . .. -||..........__......  "There is a shadow that looms over life,
      . /  ||......../-- \\.::::  Of knowledge that will never be found;
   . ..|   ||...... /    | |.:::  You can guess or waste your life on it,
     .|  _-||.......||   / /.:::: Or look beyond into what's next."
    ..| |..||...... -\_- \ |\-.:::
     .| |.[< \ .../            \.::
      .||.|||\|\ |  -      - .  \.::::
     ...|.\|| |  \  |        |   |.:::.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

new topic     » goto parent     » topic index » view message » categorize

6. Re: Learning Euphoria

.What I am
> trying to do right now is draw a chess board on the screen and fill the
> squiers with diff colors.I want to program in broad games,quiz games
chess
> stuff all with good graphics.I never quit when a program pisses me off
like
> this.
>
The dirtiest, filthiest, fastest way of doing this is creating a square in
Neopaint, Windows Paint, or any other BMP-maker, load it once into a
sequence using read_bitmap(), and redisplay it over and over in a two level
loop using display_image(), incrementing the x and y values by the height
and the width of the square. This should take you no more than an hour tops
from the creation of the square in the paint program to actually writing
the code (a measley 7 lines of code) to put them on the screen.

If you want me to send you a demonstration program , with documented code
to help you along, let me know in private Email (so I don't stupidly
circulate an attachment in the listserv like last time ;> )

David Gay
http://www.digital-liquid.com/abgte
A Beginner's Guide To Euphoria

new topic     » goto parent     » topic index » view message » categorize

7. Re: Learning Euphoria

>Yes, even I don't know what I am talking about. Better ask David Gay.

I downloaded and played your enjoyable game Snakers. I think you know more
than
what you are giving yourself credit for.

"Young minds, fresh ideas...be tolerant!"

- Kirk, "Star Trek III: The Search For Spock"

new topic     » goto parent     » topic index » view message » categorize

8. Re: Learning Euphoria

: So exactly what IS your real name? Scott or David?


Hi
Scott is my bother in law he has the internet con I use his computer to get
on the internet.My name is David Mosley

new topic     » goto parent     » topic index » view message » categorize

9. Learning Euphoria

DIST MAIL DD=DATA TO EUPHORIA at MIAMIU.ACS.MUOHIO.EDU
END
Is {} and "" the same as ASCII 0 or NUL?

new topic     » goto parent     » topic index » view message » categorize

10. Re: Learning Euphoria

Clemente Garcia wrote:
> DIST MAIL DD=DATA TO EUPHORIA at MIAMIU.ACS.MUOHIO.EDU
> END

?? List-serv again... :)

> Is {} and "" the same as ASCII 0 or NUL?

        NO!!    NUL does not exist in Euphoria..
        {} is an empty sequence
        0 is an atom/ascii/char/integer/float/double of value: 0
        "" is an empty sequence also
        {0} is an sequence with one element which has the value: 0

        Atom are your information or data, set in numbers (either decimal or
heximal)
        Sequence are the way you structure /order you data, you can give them a
name and they can hold atom/ascii/etc but also other sequences.
        See it like a tree where the apples are the atoms (any value thus) and
the branches the sequences, some branched contain apples and other
branches, some only branches, some only apples.
        To get a apple or a whole branch of apples from the tree, say for
example [3][4][5][1] which will get the first apple from the fifth brach
of the 4th branch of th3 branch.

        You might wanne get "A beginners guide to Euphoria" by David Gay. The
link is available on "other sites related to Euphoria" on RDS HomePage
(http://members.aol.com/FileEU)

        I hope this helps..

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view message » categorize

11. Re: Learning Euphoria

>Is {} and "" the same as ASCII 0 or NUL?

Kinda like NUL. Well, try looking at it this way:
"AAAA" is the same as {65, 65, 65, 65}
"" is the same as {}
length("AAAA") is equal to 4
length("") is equal to 0
For strings, it can be considered a NUL string. But it isn't the same as
ASCII 0. The atom 0 is equal to ASCII 0 (Or NUL).
In BASIC, a NULL string is pretty much the same as a zero length sequence
({})
(Technically, it can be argued otherwise, I guess...)

Ok, in short, no, they don't.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu