But this is not the good topic to discuss about that, we should return to the appropriate subject
It would be a real pity if a spoke English better than FrenchI you need a translate, you can ask me... or Orwell : he speaks French very good!
Posted 18 September 2005 - 07:01 PM
It would be a real pity if a spoke English better than FrenchI you need a translate, you can ask me... or Orwell : he speaks French very good!
Posted 18 September 2005 - 10:16 PM
I don't need a translation, I can read french very well. But I cannot download your programs. Whenever I try, the modem hangs . Anyway, I can see the well-known Tower of Hanoi, the "classic" Breakout, and 3D pictures. I'm not interested on games, but I want to see your code organization. The algorithm for solving the Tower of Hanoi problem has some interest as well, since it is based on recursion.So here they are My Lua Programs
The comments are in French... Sorry!
I you need a translate, you can ask me... or Orwell : he speaks French very good!
There are some screenshots:
Posted 18 September 2005 - 10:43 PM
Posted 19 September 2005 - 01:48 AM
Posted 19 September 2005 - 06:44 PM
Lua Program Set 1Killburn: Try to upload it to the filesharing
Posted 20 September 2005 - 08:33 PM
Posted 20 January 2006 - 11:32 AM
Posted 23 February 2006 - 09:56 AM
A nice function that stdlib must contain is something named for example BoldFont, that gets a text and returns that text written by variable letters.
ie It converts "Hello, World!" to "Hello, World!"
It is very useful for writing titles.
Thanks.
title("Hello World","title1") Print title1
Posted 01 March 2006 - 12:23 PM
Posted 01 March 2006 - 02:38 PM
fractal is just "Fraktal" in germanLua Program Set 1
omegavirus >> Please tell me what you don't understand... Sorry, now I can't see my programs, so I can't help you
If your native language is spanish, maybe you could help me to make a translation of KaosGenerator. I use Multi language support, but the only languages I know are French and English (and a bit German, but I don't know how to say "fractal" in German )
Posted 01 March 2006 - 07:27 PM
I no longer use CP-Basic, now I always use Lua.
I don't want to make you disappointed but I think that we must let the others to use it.
Posted 01 July 2007 - 07:22 PM
Posted 03 July 2007 - 10:37 PM
This is an old effort to make CPBasic better by adding "standard" library functions. I expressed my opinion about such an effort about two years ago. I said then that CP Basic is very poor and extremely slow, so this effort was a nice try, but pointless; CPLua is so poor, so that there is no hope to make it useful by adding "library" functions written in CP Basic (in fact, you can't even define serious CP Basic functions, because the language itself is very very limited). Even after OS 3 release, nothing has been changed; CP Basic remains poor and extremely slow.1- what do you do here, what is discussion about??
A question definitely . There are some manuals for Lua, you can find them in the CPLua topic, not here.2- how I can learn Lua?
Another question. Anyway, the answer is very short: CPLua, without a doubt.3- what is the most powerful programming language for CP?
It depends on what you mean by "easiest". Some people may not agree, but I think CPLua is easier to learn than CP Basic. Anyway, even if it's not, in practice you don't have a choice here.3- what is the easiest programming language for CP?
Posted 29 June 2008 - 11:57 PM
Here's a suggestion for a rounding function that rounds up or down to a given number of decimal positions
round(x,n) = int(abs(x)*10^n+0.5)/10^n*signum(x)
where
x := the variable to round
n := number of decimal positions
--- EDIT ---
You might want to include a test for x=0, since signum(0) would return undefined..
A new function could look like this:
round(x,n) = piecewise(x,int(abs(x)*10^n+.5)/10^n*signum(x),x)
Posted 30 June 2008 - 04:17 PM
Posted 01 July 2008 - 12:15 PM
Posted 01 July 2008 - 05:54 PM
Posted 02 July 2008 - 01:37 AM
Posted 02 July 2008 - 03:52 AM
Posted 07 November 2008 - 11:13 PM
0 members, 0 guests, 0 anonymous users