Forums
April 28, 2024, 06:38 PM

Author Topic: RandomBot  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

Offline Korydex

Re: RandomBot
« Reply #15 on: August 30, 2013, 04:54 AM »
Quote
This works only for one player (for one string actually). As long as there is only one freebie possible.
Though, the players who already did have freebie can't get it again. :-X Maybe add smth like %% and ^^ too? xd

Re: RandomBot
« Reply #16 on: August 30, 2013, 05:13 AM »
If the next WO / WWO RandomBot will be used by all MOD, MOD then, too, can and must be ll have 100% points for a medal if he wins.

But, I think LL must have half points for medal.









Re: RandomBot
« Reply #17 on: August 30, 2013, 07:08 AM »
Quote
This works only for one player (for one string actually). As long as there is only one freebie possible.
Though, the players who already did have freebie can't get it again. :-X Maybe add smth like %% and ^^ too? xd

yes it is implemented with global variable. bot remeber who was freebie previously and will not give it to same name twice in a row. I did not delete that function, it still works.
About star sign: It works for one player only with ** sign, i mean. if you set two players with ** - there is still will be a chance that ** will be replaced from freebie with another ** name. I would fix that easy in loop, by adding additional loop checking for players without ** sign. But the problem is that RandomBot script works not like that. I`ve scripted RandomBot on NEXT day since i first launched mIRC in my life. I was lazy to learn how mIRC arrays works, to use them in loops, so i used "by hand" scripting technique. It`s ok for simple tasks. But for detailed checking and exceptions its pretty tough task. Thats why it will work for only one player with ** sign. Yet.

I will try to learn how mIRC arrays works and maybe rewrite script. So more complicated exceptions will be possible to do.

Re: RandomBot
« Reply #18 on: August 30, 2013, 08:58 PM »
Okay guys. I figured out how arrays works in mIRC. Its actually pseudo-arrays. Abyway they work and im already started rewriting pairings with it. Im making PM tests in special commands, so its not affecting current commands at all. Only when i`ll be sure that everything is perfect - i will replace the script.
Results of those will post here when its done.

Re: RandomBot
« Reply #19 on: August 31, 2013, 12:29 PM »
RandomBot is now totally rewritten:
Pairing tool is now 270 lines (compare to 4190 lines of previous version :D)
implemented commas deleting (!pairings a, b, c, d, e will give now a vs b , c vs d etc)
implemented commas deleting for LuckyLooser aswell.
Max players (for pairings/grouping/LL) extended to 100 (was 32 max). But now this limit is formal. It can handle thousands of players.

Excluded function of "avoid same player give freebie again". Becouse it couses situations that are not fits to WO rules. Becouse same player could not get Freebie in next tourney. Bot would not allow to do that.
Agaisnt it, i`ve implemented ** - marking technique. Those players who marked as ** - will not get freebie. Its usefull to mark MOD (coz WO rules says that mods can`t get freebie) + players who already got freebie - could be marked like that if another freebie selection will be in same tourney.
This implemented for as multiple selections. Mod can mark as many players to dont get Freebie, as much he need. (this option is not hidden tho, so everyone can see what MOD is doing.)

Functions for !3pairings !4pairings !5pairings !6pairings, !grouping !3grouping are also implemented.
For grouping (creation of random groups) written next things:

!grouping a b c  ->  will give u result a/b , c is alone.
!3grouping a b c d  -> will give you result a/b/c , d is alone.
!3grouping a b c d e  -> will give you result  a/b/c , d/e/(need_partner)
etc.
« Last Edit: August 31, 2013, 12:37 PM by PyroMan »

Offline Casso

Re: RandomBot
« Reply #20 on: August 31, 2013, 01:29 PM »
Very nice work Pyro. Keep it up ;)