Ви іноземний торговець, сподіваючись отримати прибуток. Є 5 товарів, які люди хочуть торгувати: A
прикоти, B
весла, C
анари, D
афідоли та E
арвіги. Починаючи з зими, потрібно вирішити, що виробляти. Потім восени ви подорожуєте і проводите свої дні, торгуючи з метою отримання прибутку.
Ігровий процес
Ви починаєте гру з 10 кожного товару на зберіганні. Щороку ви будете споживати по 2 кожного продукту.
На початку гри ви отримуєте список з 5 продуктів, а також кількість, яку ви зможете виробляти щороку (наприклад:) 5-A,6-B,3-C,12-D,4-E
. Потім ви повернете лист А через Е, вирішивши, що виробляти.
Тоді, восени, ви виведете на ринок свою продукцію (включаючи продукти, що зберігаються). Ви маєте 50 оборотів для торгівлі.
Ви повинні вирішити, чи хочете ви P
купувати ринок, S
ell чи L
сповіщати ринок. Після цього покупці будуть зв'язані випадковим чином з продавцями. Якщо у групи є додаткові, випадкові статки пропустять цю чергу. Якщо трейдер буде пропущено, то вони будуть отримувати S
, в іншому випадку T
. Продавець повинен вирішити, що він хоче продати, і суму (ex:) 3-A
, а потім, що він би прийняв (ex:) 5-B,2-D,1-E
(Цінні показники не всі ). Потім покупцеві повідомлять, який товар продає продавець, потім товари, які продавець візьме за нього, і він може вибрати товар, щоб торгувати ним (наприклад: D
або X
ні за що).
Після закінчення всіх торгів або після виходу з ринку ви будете споживати по 2 товару, і рік починається з початку. Якщо у вас є менше 2 будь-якого 1 товару, ви помрете (і пройшли Q
).
Ваш рахунок буде число років, в який ви тривали, і після 50 ігор ваші бали будуть усереднені за ваш загальний бал.
Необов’язкові ходи
Ви можете в будь-який час повернутися G
до запиту ваших товарів
Ви в будь-який час можете повернутися N
до запиту кількості нових товарів у вашому інвентарі (вироблений будь-яким гравцем у минулому році, а нові продукти будуть продаватися раніше, ніж старі товари)
Ви можете будь-коли повернутися T
до поточної фразової фрази: P
roduce, arket M
або T
rading
Під час торгівлі ви можете запитувати I
ідентифікатор, унікальний для гравця, з яким ви торгуєте.
Під час торгівлі ви можете повернутися M
до запиту щодо кількості людей, які торгують
Як це кодувати:
Ви можете використовувати будь-яку стандартну мову, і вона повинна містити command.txt
команду для запуску програми.
Загальний потік вашої програми повинен бути:
Get productivity
While alive:
Output product you want to produce
While in trading:
Output whether you want to purchase or sell
Get whether or not you were skipped. If not skipped:
If purchasing:
print product you offer, and products you will accept
Else:
Get product offered, products being accepted, and choose the product you will give
У мене тут програма тестеру . Щоб його використовувати, створіть папку в папках bots з назвою вашого бота. Додайте command.txt
свою програму та все, що потрібно вашій програмі. Я додаватиму подання по мірі їх надходження. Якщо ви не хочете встановлювати мови, необхідні для запуску деяких або всіх, вам просто потрібно видалити command.txt у папці бота.
Внутрішня робота
Буде 5 ботів для кожної поданої програми. Ідентифікатор буде різним для ботів одного типу.
Я називатиму суму, яку людина може виробляти даний продукт продуктивністю. Кожному продукту буде дана основна продуктивність, де вся базова продуктивність складе до 30. Один з балів буде забезпечений не більше 3, а всі будуть принаймні 2.
Тоді продуктивність кожного гравця буде відрізнятися від базової продуктивності (одне значення буде змінюватися на +2, інше +1, потім +0, -1, а решта значення буде змінюватися на -2).
Базова продуктивність зміниться від гри до гри.
Оцінки:
seer: 10.128 years
level_headed_trader: 8.196 years
introvert: 6.856 years
random_ando: 5.408 years
hoarder_trader: 4.12 years
ratio_trader: 3.532 years
scared_trader: 3.056 years
(10 players + 4 my bots)*5
торговці. Гра налаштована так, що неможливо продовжувати гру назавжди. Зрештою всі помруть.
q
, чи ви пропущені, і якщо ви купуєте, пропозиція продавця та прийнята продукція. Я сподіваюся, що вклади очевидні.