1. followup on hangman

Hi everyone, thank you for the great suggestions!

you can find a new version here:
http://www.wuala.com/euphoria_proj/public/hangman/

It now has the option to pick from a long words list,
so now it's even fun to play

see you, kobi

new topic     » topic index » view message » categorize

2. Re: followup on hangman

kobi said...

you can find a new version here:
http://www.wuala.com/euphoria_proj/public/hangman/

It now has the option to pick from a long words list,
so now it's even fun to play

hi, nice work! if anyone is frustrated playing the game, I posted a hangman helper on pasty. http://openeuphoria.org/pastey/119.wc

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

3. Re: followup on hangman

For a different take on this game, I decided to write it with a GUI. I used a somewhat different method of keeping track of things... Results, which I think are pretty good, and actually entertaining to play, can be found here:

https://sites.google.com/site/euphoriagtk/Home

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

4. Re: followup on hangman

irv said...

For a different take on this game, I decided to write it with a GUI. I used a somewhat different method of keeping track of things... Results, which I think are pretty good, and actually entertaining to play, can be found here:

https://sites.google.com/site/euphoriagtk/Home

Here is a Windows Version of your Code. Not as nice as your GTK Version but working.

http://euphoria.indonesianet.de/hangman.htm

It should work with the last (silent) update with tinEWG(#070) available (since 24.04.12) here: http://euphoria.indonesianet.de/source.zip

It does not work with the Version in the setup.exe

Andreas

BTW I really like the GTK Version in both cases, look and feel, and coding....

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

5. Re: followup on hangman

andi49 said...

Here is a Windows Version of your Code. Not as nice as your GTK Version but working.

http://euphoria.indonesianet.de/hangman.htm

It should work with the last (silent) update with tinEWG(#070) available (since 24.04.12) here: http://euphoria.indonesianet.de/source.zip

It does not work with the Version in the setup.exe

Andreas

BTW I really like the GTK Version in both cases, look and feel, and coding....

Interesting! There's not a HUGE difference, it might be something that could be handled by creating 'aliases' in EuGTK to allow using the Windows version of the controls. Or perhaps handled by a pre-processor?

"write once, run anywhere?"

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

6. Re: followup on hangman

[/quote]

Interesting! There's not a HUGE difference, it might be something that could be handled by creating 'aliases' in EuGTK to allow using the Windows version of the controls. Or perhaps handled by a pre-processor?

"write once, run anywhere?"

[/quote]

Hallo

What about the following idea

Defining a set of (very Basic) Euphoria GUI Functions/Procedures

like creating a std/EuGui.e

with empty functions like

function makeawindow() 
end fucntion 
function makeabutton() 
end function 
function winmain() 
end function 

The developers off the different wrappers/librarys can then fill them with life. Mean map there funtions to the EuGui funtions. And can offer there EuGui.e

So you can write Euphoria GUI Code that works on every lib/system. I do not talk about complex programs just a basic set of functions. This can make life easier, not only for beginners.

I know it will be hard to define this 'basic set' functions, but i think this will be really helpfull and something you do not find everywhere.

Just an idea Andreas

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

7. Re: followup on hangman

It would be nice if you could just replace the single 'include' with either GtkEngine or EuWin, depending upon platform, and have the rest work automatically. Although, in reality, I suppose the GtkRoutines would have to be replaced, not the Engine itself, because that's where the actual calls to dll(s) occur.

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

8. Re: followup on hangman

irv said...

It would be nice if you could just replace the single 'include' with either GtkEngine or EuWin, depending upon platform, and have the rest work automatically. Although, in reality, I suppose the GtkRoutines would have to be replaced, not the Engine itself, because that's where the actual calls to dll(s) occur.

Hi

If think having a standard layer between the different engines would be real benefit. But i know this will be too much work.

Just for the fun

this is your hangman (okay, my Windowversion of it) running on ReactOS 0.3.14

http://euphoria.indonesianet.de/react_hangman.jpg

Works unmodified with Eu 4.0.4

Andreas

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

9. Re: followup on hangman

Hallo

It seems I'am little addicted to hangman ;). Here is a Screenshot of hangman.ex (and some other EuGtk programs) on Win32 (WinXP SP3). http://euphoria.indonesianet.de/gtk3_w32.jpg

Is there any interrest in a Win32 Version of EuGtk?

Andreas

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

10. Re: followup on hangman

andi49 said...

Is there any interrest in a Win32 Version of EuGtk?

Andreas

Certainly! Did you find a pre-compiled GTK3.dll, or have to compile it yourself?

And how many changes were necessary to the EuGTK source to make it work?

Irv

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

11. Re: followup on hangman

irv said...

Certainly! Did you find a pre-compiled GTK3.dll, or have to compile it yourself?

And how many changes were necessary to the EuGTK source to make it work?

Irv

Hallo, i found a pre-compiled setup here on this Webpage http://opensourcepack.blogspot.de/p/pygobject-pygi-aio.html It's Version 3.3.6

I also found pre-compiled binaries on the OpenSuse Server. http://download.opensuse.org/repositories/windows:/mingw:/win32/SLE_11_SP1/noarch/

I didn't have to change much to make things working this far (but I do not really know GTK) so it's more a 'hack' than programming ;) Don't expect too much.

I have uploaded the changed files to here http://euphoria.indonesianet.de/eugtk_w32.zip

You should set GTK_PATH to the bin directory (where all the .dll's are)

Andreas

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

12. Re: followup on hangman

Hey, that works well, with the exception of a couple of things. One seems related to file paths (or canonical_path) of images. Shouldn't be too hard to track down, I think. Perhaps it is only a problem on Windows 7.

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

13. Re: followup on hangman

Hallo

irv said...

Hey, that works well, with the exception of a couple of things. One seems related to file paths (or canonical_path) of images. Shouldn't be too hard to track down, I think. Perhaps it is only a problem on Windows 7.

You mean like in worldflags.ex?

object flaglist = dir(canonical_path("~/demos/flags/flags-*.png")) 

At least on WinXP canonical_path works like expected. You got to move everything in your 'drive:\Documents and Settings\user' Folder.

From the manual:

"If path_in begins with a tilde '~' then that is replaced by the contents of $HOME in unix platforms and %HOMEDRIVE%%HOMEPATH% in Windows."

I can't test it on Win7. But i will give it a try on Win8 (if GTK works there).

Andreas

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

Search



Quick Links

User menu

Not signed in.

Misc Menu