Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: Challenge: As few characters as possible  (Read 3454 times)

0 Members and 1 Guest are viewing this topic.

NoMoreFun

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2013
  • Respect: +2131
    • View Profile
Challenge: As few characters as possible
« on: September 23, 2012, 08:46:25 am »
0

In Dominate, what's the least code you need to
*Beat Big Money
*Beat BigSmithy
*Beat DoubleJack
*Beat Chapel/Mountebank

The test will be to play 1000 games, and you need to win at least 60%
Logged

NoMoreFun

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2013
  • Respect: +2131
    • View Profile
Re: Challenge: As few characters as possible
« Reply #1 on: September 23, 2012, 09:09:56 am »
0

Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #2 on: September 23, 2012, 09:37:00 am »
+5

@1,2,4:
Code: [Select]
{
  requires: ['Silk Road', 'Workshop']
  gainPriority: (state, my) -> [
     'Workshop'
     'Silk Road'
     'Estate'
    ]
}
Logged

NoMoreFun

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2013
  • Respect: +2131
    • View Profile
Re: Challenge: As few characters as possible
« Reply #3 on: September 23, 2012, 09:53:49 am »
+1

@1,2,4:
Code: [Select]
{
  requires: ['Silk Road', 'Workshop']
  gainPriority: (state, my) -> [
     'Workshop'
     'Silk Road'
     'Estate'
    ]
}


Wow...
Logged

ycz6

  • Minion
  • *****
  • Offline Offline
  • Posts: 676
  • Respect: +412
    • View Profile
Re: Challenge: As few characters as possible
« Reply #4 on: September 29, 2012, 11:01:19 pm »
0

'Gardens' has a few characters fewer than 'Silk Road'.
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #5 on: September 30, 2012, 04:15:34 am »
0

'Gardens' has a few characters fewer than 'Silk Road'.
But Gardens does not win with this rules, at least the last time I tried...
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #6 on: September 30, 2012, 03:42:14 pm »
0

@3:
Code: [Select]
{
  requires: ['Ironworks', 'Great Hall', "Island"]
  gainPriority: (state, my) -> [
    "Ironworks"
    "Great Hall"
    "Island"
  ]
}
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #7 on: September 30, 2012, 03:51:41 pm »
0

You can of course get rid of some blanks and such, and get
@1,2,4
Code: [Select]
{
 requires:['Silk Road','Workshop']
 gainPriority:(s,m)->['Workshop','Silk Road','Estate']
}
which is 94 chars (according to wc), and

@3:
Code: [Select]
{
 requires:['Ironworks','Great Hall','Island']
 gainPriority:(s,m)->["Ironworks","Great Hall","Island"]
}
which is 101chars.

Edit: A bit more compressed.

Edit2: (s,m) can also be obmitted, saving 5chars in each bot.
« Last Edit: September 30, 2012, 04:11:56 pm by DStu »
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #8 on: September 30, 2012, 04:25:53 pm »
+1

... and as we now use the same array twice, once in "requires" and once in "gainPriority", we can save one of them with
Code: [Select]
{
 requires:['Ironworks','Great Hall','Island']
 gainPriority:(s,m)->m.ai.requires
}
which brings us to 85.

Seems to win against all 4, but BigSmithy is quite close...

Edit: But of course, you could also do
Code: [Select]
{
 requires:['Workshop','Silk Road','Estate']
 gainPriority:(s,m)->m.ai.requires
}
which fortunately works, and get 1,2,4 to 83
« Last Edit: September 30, 2012, 04:30:43 pm by DStu »
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1490
    • View Profile
Re: Challenge: As few characters as possible
« Reply #9 on: September 30, 2012, 04:35:04 pm »
0

'Gardens' has a few characters fewer than 'Silk Road'.

... and coming back to this, WS/Gardens really works against the Chapel/Mountebank, this is 81chars for this one...
Logged
Pages: [1]
 

Page created in 0.199 seconds with 20 queries.