*Author

Offline serprexTopic starter

  • Administrator
  • ********
  • Posts: 2240
  • Reputation Power: 0
  • serprex hides under a Cloak.
  • Awards: War #12 Winner - Team Darkness
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119166#msg1119166
« Reply #48 on: January 04, 2014, 06:46:49 pm »
If you want to discuss development actively, chat is more amiable to that end. That said, I lean towards "cross that bridge when we get to it" development, so unless you're developing a full fledged AI branch, I won't be of use (I repeat this sentiment for emphasis)

I'm not interested in defining AI priorities for Dumb AI. That said, your sheet lacks one thing Dumb AI might use: a column which defines filters

I expect any new AI being developed will come up with its own table as needs arise
« Last Edit: January 04, 2014, 06:50:04 pm by serprex »

Offline MyNameIsJoey

  • Chat Moderator
  • ******
  • Posts: 2457
  • Country: ca
  • Reputation Power: 41
  • MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.
  • I walk alone
  • Awards: Weekly Tournament Winner 11.08.18Weekly Tournament Winner 09.06.18Weekly Tournament Winner 26.05.18Brawl #7 Winner - Green NightSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeBrawl #1 Winner - Team Nyan SharksWeekly Tournament WinnerSlice of Elements 3rd Birthday CakeWeekly Tournament Winner
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119555#msg1119555
« Reply #49 on: January 06, 2014, 12:10:33 pm »
So i tested a few games with fippe today, and I actually liked it. Great work to whoever is working on this.
follow me at twitch.tv/mynameisjoey

Offline antiaverage

  • Administrator
  • ********
  • ********
  • Posts: 1497
  • Reputation Power: 36
  • antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.
  • HTML5-hipster-sloth.bunchie();
  • Awards: Slice of Elements 15th Birthday CakeSlice of Elements 12th Birthday CakeSlice of Elements 10th Birthday CakeSlice of Elements 9th Birthday CakeRaise the Banners...AgainSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeMS Paint Card Art #7 WinnerSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119576#msg1119576
« Reply #50 on: January 06, 2014, 02:52:37 pm »
So i tested a few games with fippe today, and I actually liked it. Great work to whoever is working on this.

It's pretty much entirely serprex.
Developer of http://dek.im - a Deck Image generator with rollover to view full cards, current to version 1.327

Thanks to Amashi for my avatar!

Offline eaglgenes101

  • Hero Member
  • *****
  • Posts: 1964
  • Country: us
  • Reputation Power: 29
  • eaglgenes101 is a proud Wyrm taking wing for the first time.eaglgenes101 is a proud Wyrm taking wing for the first time.eaglgenes101 is a proud Wyrm taking wing for the first time.eaglgenes101 is a proud Wyrm taking wing for the first time.eaglgenes101 is a proud Wyrm taking wing for the first time.
  • The rising all-'rounder of Elements
  • Awards: Slice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119627#msg1119627
« Reply #51 on: January 06, 2014, 08:52:22 pm »
If you want to discuss development actively, chat is more amiable to that end. That said, I lean towards "cross that bridge when we get to it" development, so unless you're developing a full fledged AI branch, I won't be of use (I repeat this sentiment for emphasis)

I'm not interested in defining AI priorities for Dumb AI. That said, your sheet lacks one thing Dumb AI might use: a column which defines filters

I expect any new AI being developed will come up with its own table as needs arise
I'm preparing the equipment for that bridge in case someone wants to cross it.
My 3 game-modification principles:
1. If it ain't broke, don't wreck it.
2. Simple fixes for simple problems.
3. Remember to fill in the holes.

Offline MyNameIsJoey

  • Chat Moderator
  • ******
  • Posts: 2457
  • Country: ca
  • Reputation Power: 41
  • MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.MyNameIsJoey soars like the Phoenix, unable to be repressed.
  • I walk alone
  • Awards: Weekly Tournament Winner 11.08.18Weekly Tournament Winner 09.06.18Weekly Tournament Winner 26.05.18Brawl #7 Winner - Green NightSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeBrawl #1 Winner - Team Nyan SharksWeekly Tournament WinnerSlice of Elements 3rd Birthday CakeWeekly Tournament Winner
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119719#msg1119719
« Reply #52 on: January 07, 2014, 06:23:30 am »
stuff i found while testing against AI :

purify bug if i use two on my instead of giving me -4 poison counter it says NaN
Gift Of Oceanus is incredibly op.
follow me at twitch.tv/mynameisjoey

Offline iancudorinmarian

  • Legendary Member
  • ******
  • Posts: 3772
  • Country: ro
  • Reputation Power: 67
  • iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.
  • Master of Ponies.Eternally salty about War#11 SEC.
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeWar #12 Winner - Team Darkness12th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 9th Birthday CakeWeekly Tournament Winner11th Trials - Master of EntropySlice of Elements 8th Birthday CakeWinner of TrinityWinner of Team PvP #710th Trials - Master of EntropySlice of Elements 7th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerWeekly Tournament Winner9th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 6th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerSlice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119765#msg1119765
« Reply #53 on: January 07, 2014, 04:29:14 pm »
So, I read the code of "index.html".
I don't know anything about html yet (only some basics), but is that the way you have to write a code in html?
Don't get me wrong, I understood pretty much everything there, but I've been taught to write in C++, and this seems more like Pascal combined with C++ to me.
Am I wrong? As I said, I never wrote any html, so that may be the way html is written.
Sorry for bothering you with stupid things, I'm just trying to understand.

I should really learn java script and html someday...

By the way, "this" is a structure, right? I know about them, but I don't know about classes yet. I heard they're pretty much the same as structures, except you can define functions in them and other stuff you can't do in structures.
« Last Edit: January 07, 2014, 04:46:20 pm by iancudorinmarian »

Offline serprexTopic starter

  • Administrator
  • ********
  • Posts: 2240
  • Reputation Power: 0
  • serprex hides under a Cloak.
  • Awards: War #12 Winner - Team Darkness
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119768#msg1119768
« Reply #54 on: January 07, 2014, 04:57:28 pm »
jijo: Fixed purify. While I don't doubt Gift being OP, explanation is nice. Mono water rush? Suggestion for how much quanta should be generated? Considering +3 :water +2 mark

iancudorinmarian: index.html is mostly javascript. But yes, javascript is how you write code for browsers (other methods compile to javascript)
As for JS's OOP paradigm... you're use to C++, which is class oriented. Javascript is prototype oriented. Essentially classes are objects in the latter. I assume by structure you mean struct. In C++ structs and classes are pretty much the same. It's easier if you start with the idea of "Javascript doesn't have classes" if you start reading about javascript OOP
http://en.wikipedia.org/wiki/Prototype-based_programming
"this" in javascript is applied by a.f(x). So if I have a function f, "a.asdf = b.ggg = f;" will have a.asdf() will have f be called with this as a, and b.ggg() will have f be called with this as b
« Last Edit: January 07, 2014, 05:00:30 pm by serprex »

Offline andretimpa

  • Master of Gravity
  • *
  • ******
  • Posts: 3813
  • Country: br
  • Reputation Power: 58
  • andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.andretimpa is truly a Titan, worthy of respect and acknowledgement.
  • OMG how did I get here I'm not good with computers
  • Awards: Slice of Elements 15th Birthday CakeSlice of Elements 12th Birthday Cake14th Trials - Master of GravitySong of the Day Tourney Most Creative DeckSlice of Elements 11th Birthday Cake13th Trials - Master of GravitySlice of Elements 10th Birthday CakeArt Competition - RedecoratingSlice of Elements 9th Birthday CakeArt Competition: MS Paint #9 WinnerArt Competition: League of the Battle Champion WinnerArt Competition: Foil ArtWeekly Tournament WinnerSlice of Elements 8th Birthday CakeArt Competition: Paint With Elements - The Elemental AvatarsSlice of Elements 7th Birthday CakeCompetition - A Challenge of Challenges1st Place WC Winner: October 20151st Place Weekly Challenge Winner: September 2015Weekly Design August 2015 - GoldWeekly Design July 2015 - SilverSlice of Elements 6th Birthday CakeForum Brawl #4 WinnerPaint with Elements Competition WinnerSlice of Elements 5th Birthday CakeWeekly Tournament WinnerSlice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119770#msg1119770
« Reply #55 on: January 07, 2014, 05:01:37 pm »
So, I read the code of "index.html".
I don't know anything about html yet (only some basics), but is that the way you have to write a code in html?
Don't get me wrong, I understood pretty much everything there, but I've been taught to write in C++, and this seems more like Pascal combined with C++ to me.
Am I wrong? As I said, I never wrote any html, so that may be the way html is written.
Sorry for bothering you with stupid things, I'm just trying to understand.

I should really learn java script and html someday...

By the way, "this" is a structure, right? I know about them, but I don't know about classes yet. I heard they're pretty much the same as structures, except you can define functions in them and other stuff you can't do in structures.

First, html is not a programming language like C++ or Pascal (you can't make calculations, for example), it's actually a code that describes what should go where and where to find the relevant files. Javascript on the other hand is a real programming language (that you can add to html so your browser executes it) and it's way more simplified when compared to C and friends. If you know how to program in one of these languages JS is pretty simple to learn (once you get past some weird features it has).

Second, an object is essentially a structure that has its main functionality (the functions used to handle the structure) built in, not only its data. A class is a way to specify a type of object (closer to a typedef in C/C++), where objects are instances of classes. JS uses prototypes which are a different way of specifying objects.

Third, 'this' is a keyword to refer to the object itself.
« Last Edit: January 07, 2014, 05:03:55 pm by andretimpa »
Every time a graboid evolves, an elemental gets his wings.
:gravity Guild (old), War 9 & 13 (gen) / :time Brawl 2 & 3, War 7 & 14 / :death War 8 & 12 / :fire Brawl 4 / :entropy Brawl 5 / :darkness War 10

Offline iancudorinmarian

  • Legendary Member
  • ******
  • Posts: 3772
  • Country: ro
  • Reputation Power: 67
  • iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.
  • Master of Ponies.Eternally salty about War#11 SEC.
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeWar #12 Winner - Team Darkness12th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 9th Birthday CakeWeekly Tournament Winner11th Trials - Master of EntropySlice of Elements 8th Birthday CakeWinner of TrinityWinner of Team PvP #710th Trials - Master of EntropySlice of Elements 7th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerWeekly Tournament Winner9th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 6th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerSlice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119771#msg1119771
« Reply #56 on: January 07, 2014, 05:05:22 pm »
jijo: Fixed purify. While I don't doubt Gift being OP, explanation is nice. Mono water rush? Suggestion for how much quanta should be generated? Considering +3 :water +2 mark

iancudorinmarian: index.html is mostly javascript. But yes, javascript is how you write code for browsers (other methods compile to javascript)
As for JS's OOP paradigm... you're use to C++, which is class oriented. Javascript is prototype oriented. Essentially classes are objects in the latter. I assume by structure you mean struct. In C++ structs and classes are pretty much the same. It's easier if you start with the idea of "Javascript doesn't have classes" if you start reading about javascript OOP
http://en.wikipedia.org/wiki/Prototype-based_programming
"this" in javascript is applied by a.f(x). So if I have a function f, "a.asdf = b.ggg = f;" will have a.asdf() will have f be called with this as a, and b.ggg() will have f be called with this as b
Thank you for explaining. And yes, by "structure" I meant "struct".
I'll continue reading everything from the source site.
It will be even easier to understand because it's about EtG ;)
Just by looking at the codes I can see the hard work you do. Congratulations for all the work until now :D

Offline iancudorinmarian

  • Legendary Member
  • ******
  • Posts: 3772
  • Country: ro
  • Reputation Power: 67
  • iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.
  • Master of Ponies.Eternally salty about War#11 SEC.
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeWar #12 Winner - Team Darkness12th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 9th Birthday CakeWeekly Tournament Winner11th Trials - Master of EntropySlice of Elements 8th Birthday CakeWinner of TrinityWinner of Team PvP #710th Trials - Master of EntropySlice of Elements 7th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerWeekly Tournament Winner9th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 6th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerSlice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119773#msg1119773
« Reply #57 on: January 07, 2014, 05:08:08 pm »
First, html is not a programming language like C++ or Pascal (you can't make calculations, for example), it's actually a code that describes what should go where and where to find the relevant files. Javascript on the other hand is a real programming language (that you can add to html so your browser executes it) and it's way more simplified when compared to C and friends. If you know how to program in one of these languages JS is pretty simple to learn (once you get past some weird features it has).

Second, an object is essentially a structure that has its main functionality (the functions used to handle the structure) built in, not only its data. A class is a way to specify a type of object (closer to a typedef in C/C++), where objects are instances of classes. JS uses prototypes which are a different way of specifying objects.

Third, 'this' is a keyword to refer to the object itself.
Thank you for the explanation. This is sure going to help me in the present and in the future as well.

Offline iancudorinmarian

  • Legendary Member
  • ******
  • Posts: 3772
  • Country: ro
  • Reputation Power: 67
  • iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.iancudorinmarian walks among the Immortals, legends and guardians of all time.
  • Master of Ponies.Eternally salty about War#11 SEC.
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeWar #12 Winner - Team Darkness12th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 9th Birthday CakeWeekly Tournament Winner11th Trials - Master of EntropySlice of Elements 8th Birthday CakeWinner of TrinityWinner of Team PvP #710th Trials - Master of EntropySlice of Elements 7th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerWeekly Tournament Winner9th Trials - Master of EntropyWeekly Tournament WinnerSlice of Elements 6th Birthday CakeWeekly Tournament WinnerWeekly Tournament WinnerSlice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119781#msg1119781
« Reply #58 on: January 07, 2014, 06:49:58 pm »
Code: [Select]
singularity:function(c,t){
        var r = c.owner.rng();
        if (r > .9){
                c.status.adrenaline = 1;
        }else if (r > .8){
                c.active.hit = Actives.vampire;
        }else if (r > .7){
                Actives.quint(c, c);
        }else if (r > .6){
                Actives.scramble(c, c.owner);
        }else if (r > .5){
                Actives.blackhole(c.owner.foe);
        }else if (r > .4){
                c.atk -= c.owner.uptoceil(5);
                c.buffhp(c.owner.uptoceil(5));
        }else if (r > .3){
                Actives.nova(c.owner.foe);
                c.owner.foe.nova = 0;
        }else if (r > .2){
                Actives.parallel(c, c);
        }else if (r > .1){
                c.owner.weapon = new Weapon(Cards.Dagger, c.owner);
        }
        c.dmg(c.trueatk(), true);
},
At the if (r>5) part: Is the singularity intended to BH the opponent's owner, or is this just a mistake? If it's intended, what's the logic behind it?

Offline Pineapple

  • Legendary Member
  • ******
  • Posts: 4105
  • Country: us
  • Reputation Power: 0
  • Pineapple hides under a Cloak.
  • Master of Cake
  • Awards: Silver DonorSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday CakeSlice of Elements 2nd Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1119785#msg1119785
« Reply #59 on: January 07, 2014, 07:17:09 pm »
Code: [Select]
//-snip-
        }else if (r > .5){
                Actives.blackhole(c.owner.foe);
//-snip-

At the if (r>5) part: Is the singularity intended to BH the opponent's owner, or is this just a mistake? If it's intended, what's the logic behind it?


Note that the blackhole function takes in the parameters of a card (the card producing BH) and a target (which isn't used in the function). According to the BH function, the ability affects the enemy of the card owner. Thus, by passing the parameter c.owner.foe (likely because players count as cards), you're asking BH to affect the foe's enemy, i.e. the singularity BHs its owner.

 

blarg: serprex,Amashi