Search found 10 matches

by ravagepn
Sun Aug 07, 2005 5:16 pm
Forum: Off Topic
Topic: Commercial Games and Apps written in PB?
Replies: 14
Views: 3597

If I remember correctly there was restricted area listed in "Games written with PureBasic" on http://www.purebasic.com/links.php3 and now is removed from a list. Was it a marketing trick or something ?
by ravagepn
Thu Aug 04, 2005 5:30 pm
Forum: Coding Questions
Topic: Linkedlist help needed
Replies: 9
Views: 3283

Thank you again. I figured that out but I was hoping that there is a simple way. I started to learn PureBasic few days ago and I'm a little disappointed that lists are so complicated. In Python for example whole this job can be done with few commands in 2-3 raws. I hope I'll find PB's good sides in ...
by ravagepn
Thu Aug 04, 2005 5:22 pm
Forum: Coding Questions
Topic: Random number pickup
Replies: 10
Views: 2898

Here are two ways, #1 with linkedlists:

NewList mylist.l()
NewList exitlist.l()

pocetak:

ClearList(mylist())
ClearList(exitlist())

For i = 0 To 80
AddElement(mylist())
mylist() = i
Next

For i = 1 To 80
brj = Random(79) + 1
SelectElement(mylist(), brj)
vst = mylist()
DeleteElement(mylist ...
by ravagepn
Wed Aug 03, 2005 10:42 pm
Forum: Coding Questions
Topic: Random number pickup
Replies: 10
Views: 2898

Really it doesn't work, but I got the point of what he meant to do. Also, check this topic about linkedlists. It may help you:
viewtopic.php?t=16135
by ravagepn
Wed Aug 03, 2005 1:19 pm
Forum: Coding Questions
Topic: Linkedlist help needed
Replies: 9
Views: 3283

I've looked at your code whole morning and started to understand it partially. One problem I can't solve out, how to sort linkedlist ?
Suppose I have a linkedlist named exitlist() which contains 7 random numbers from 1 to 39 I want to sort it in asccending order.
Here is what I thougt will work ...
by ravagepn
Tue Aug 02, 2005 11:02 pm
Forum: Coding Questions
Topic: Linkedlist help needed
Replies: 9
Views: 3283

Thank you !! I'm going now to do some code research :D
by ravagepn
Tue Aug 02, 2005 2:20 pm
Forum: Coding Questions
Topic: Linkedlist help needed
Replies: 9
Views: 3283

Thanks, compiling is ok, but how do I display result (exitlist) and where should I put openconsole - closeconsole in your code ? Does debug command have to be used, I want to make simpliest program as possible at the beggining and later when I understand the code I'll add more
by ravagepn
Mon Aug 01, 2005 9:21 pm
Forum: Coding Questions
Topic: Linkedlist help needed
Replies: 9
Views: 3283

Linkedlist help needed

I want to make a simple lottery program with linkedlist but I'm not sure how to do it.

Here is my code:
---------------------------------------
NewList mylist.l()

For i = 1 To 39
AddElement(mylist())
mylist() = i
Next

PrintN("Result: "+Str(mylist()))

;And PureBasic crushes ...
by ravagepn
Sun Mar 06, 2005 4:19 pm
Forum: Coding Questions
Topic: Any purebasic e-book ?
Replies: 41
Views: 22099

Any purebasic e-book ?

Is there any free purebasic e-book (for beginners or any) available for download, possibly in *.pdf format so that I can print it and make learning of this programming language easier ?
by ravagepn
Sun Mar 06, 2005 4:11 pm
Forum: Coding Questions
Topic: Random numbers
Replies: 1
Views: 960

Random numbers

I want to program a simple football manager game and I wonder if Pure Basic have support for random numbers ? A litle example of how do I generate them will be appriciated.