profile
viewpoint

alex-karpov/pantheon-statistics 0

Библиотека для сбора и обработки статистики игр по риичи-маджонгу, проведённых в системе Pantheon

Nihisil/gitignore 0

A collection of useful .gitignore templates

Nihisil/prosemirror-mentions 0

ProseMirror plugin to enable @mentions and #hashtags

Nihisil/radio-t-site 0

Сайт подкаста Радио-Т

issue closedMahjongRepository/mahjong-portal

Починить добавление MS аккаунта

Для получения статистики MS аккаунта нам нужно знать внутренний ID игрока. Этот ID никак нельзя получить из интерфейса клиента, его можно только узнать из запросов к API.

Раньше у меня был код который модифицировал JS объект GameMgr в консоли разработчика, там в дебрях этого объекта есть on message callback который можно переопределить и добавить туда console.log(message). После этого если в клиенте поискать игрока, то в консоли будет виден его внутренний ID.

После очередного обновления мой код перестал работать, а потом я его потерял.

Задача состоит в переписывании этого кода или в нахождении альтернативного пути получения внутреннего ID игрока.

Примерно вот такой псевдокод в браузерной консоли разработчика нужно выполнить:

GameMgr.что-то.что-то.что-то = function (response) {
   console.log(response);
   return response;
}

И после этого все запросы в виде json'a будут в консоль выводится.

Для того чтобы понять что переопределять, надо скачать их главный code.js и сделать ему деобфускацию.

Просто id нельзя увидеть в вкладке network, потому что они используют protobuf для сообщений.

Пример аккаунта со всеми тремя идентификаторами:

name=Severus
friend_id=112694126
inner_id=120164503

closed time in a day

Nihisil

issue commentMahjongRepository/mahjong-portal

Починить добавление MS аккаунта

Смотреть запросы к мс можно если про монкипатчить NetController контроллер:

app.NetController.prototype.sendReq = function (destination, method, attrs, callback) {
    console.log(destination + '.' + method)
    console.log(attrs)
    this._socket.sendRequest(destination, method, attrs, callback)
}
Nihisil

comment created time in a day

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 548d760d3a4929577e929441ca0f854912a490c3

Add Python 3.9 to tests runner

view details

push time in a day

issue closedMahjongRepository/tenhou-python-bot

Discard safe tile if you have multiple tiles with same effectiveness

6m и 8m абсолютно одинаковые по укеире, разница только в valuation, но 6m полное генбуцу, а 8m нет

Воспроизвести: python reproducer.py --log 2020102204gm-0001-7994-fb636348 --player 3 --wind 7 --honba 0 --action=draw --tile=6z

closed time in 2 days

Nihisil

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 360128f14653a86ef654e3ff33d09ec637c781b9

If there are multiple discard candidates with same effectivnes, discard safest one

view details

push time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Refactor choose_tile_to_discard() method

Метод уже стал нечетаемым. Мб логичнее разбить его на одельные методы, для темпая, 1 шантена, 2 шантена и т.д.

created time in 2 days

push eventMahjongRepository/mahjong-stat

Nihisil

commit sha 06772678b50e663a55e9503e7bf6d3060fd0e674

Add round reproducer command to the results page

view details

Nihisil

commit sha c874d82a0ba4a64ad34301bb95064c184cf8f36a

Migrate to BS4

view details

push time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 3a96db2e8d8163c55de320f48fbcd99c4b56b769

Not started game is not an error

view details

Nihisil

commit sha 3d885a471273f5a51d44a8a5b8c864d8101097c3

Fix reproducer crash if there are reconnection tags in replay

view details

Nihisil

commit sha 8fb6526e90d2bf4438fd7b9380c8740fc66908f6

Download game logs from new endpoint

view details

Nihisil

commit sha 05f6a9eb6ffb20220a727602205f1365d4f54e72

Use our own logger (to not mix logs with other libs logs)

view details

Nihisil

commit sha 5955c9368b4529b356150d9cf8a22a08b33d3482

Add option to reproducer to stop on the N tile

view details

Nihisil

commit sha 1aaa00daf7c015c27c8cf4634bb805e6a9592c1d

Add option to reproducer for debugging kan logic

view details

Nihisil

commit sha c5a81bb62228097955b40a966195ad4432d79d28

Add option to reproducer to stop on the N tile for enemy discard

view details

push time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Discard safe tile if you have multiple tiles with same effectiveness

6m и 8m абсолютно одинаковые по укеире, разница только в valuation, но 6m полное генбуцу, а 8m нет

Воспроизвести: python reproducer.py --log 2020102204gm-0001-7994-fb636348 --player 3 --wind 7 --honba 0 --action=draw --tile=6

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Bad Meld

В стратегии таняо надо еще проверять что без открытия хороший ишантен, и открытие не дает темпая и тогда не открываться.

Воспроизвести: python reproducer.py --log 2020102208gm-0009-0000-40337c9c --player Xenia --wind 4 --honba 0 --action enemy_discard --tile 5s

image

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Bad meld

Воспроизвести: python reproducer.py --log 2020102208gm-0009-0000-40337c9c --player Xenia --wind 3 --honba 0 --action enemy_discard --tile 1s

image

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Very slow desicion

Бот на сервере думал 43 секунды над тем брать ли 5м в открытие. Тенха дисконектнула по таймауту из игры.

Локально у меня это решение за 16 секунд обрабатывается, что тоже очень много и больше доступного таймера. Возможно это как-то малой кровью ускорить.

Вопроизвести: python reproducer.py --log 2020102209gm-0009-0000-f4494785 --player Kaavi --wind 1 --honba 0 --tile 5m --action enemy_discard

image

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Crashed after kan

Бот крашится при попытке объявить чанкан.

Воспроизвести: python reproducer.py --log 2020102208gm-0009-0000-1d3d08c8 --player Ichihime --wind 5 --honba 1 --tile 1z --action draw

Лог:

Traceback (most recent call last):
  File "reproducer.py", line 336, in <module>
    main()
  File "reproducer.py", line 332, in main
    parse_args_and_start_reproducer()
  File "reproducer.py", line 327, in parse_args_and_start_reproducer
    reproducer.reproduce(opts.player, opts.wind, opts.honba, opts.tile, opts.action, opts.n)
  File "reproducer.py", line 76, in reproduce
    table.player.should_call_kan(tile, False, table.player.in_riichi)
  File "/home/nihisil/work/tenhou-python-bot/project/game/player.py", line 218, in should_call_kan
    return self.ai.should_call_kan(tile, open_kan, from_riichi)
  File "/home/nihisil/work/tenhou-python-bot/project/game/ai/main.py", line 296, in should_call_kan
    new_waits_count = self.hand_builder.count_tiles(new_waiting, tiles_34)
  File "/home/nihisil/work/tenhou-python-bot/project/game/ai/hand_builder.py", line 287, in count_tiles
    n += 4 - self.player.number_of_revealed_tiles(tile_34, tiles_34)
  File "/home/nihisil/work/tenhou-python-bot/project/game/player.py", line 237, in number_of_revealed_tiles
    assert revealed_tiles <= 4, "we have only 4 tiles in the game"
AssertionError: we have only 4 tiles in the game

image

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Incorrect calculation of ramining tiles

Бот думает что осталось 3 тайла в стене и пытается жахнуть кан (тенха дисконектит из игры за такое), но на самом деле это последний тайл в стене и тут нельзя объявить кан.

Воспроизвести:

python reproducer.py --log 2020102204gm-0009-0000-f5f37b15 --player Kaavi --wind 2 --honba 0 --tile 4m --action draw --n 3

2020-10-22 13:34:26,153 DEBUG: id=kan_debug
2020-10-22 13:34:26,153 DEBUG: msg=Open kan type='kan'
2020-10-22 13:34:26,153 DEBUG: id=draw
2020-10-22 13:34:26,153 DEBUG: Step: 16
2020-10-22 13:34:26,153 DEBUG: Remaining tiles: 3
2020-10-22 13:34:26,153 DEBUG: Hand: 44455m234p56778s + 4m

image

created time in 2 days

issue openedMahjongRepository/tenhou-python-bot

Fix reconnection to the game

Bot can't reconnect to the game properly, after a couple of minutes tenhou stops to send us messages.

created time in 2 days

issue closedMahjongRepository/tenhou-python-bot

Improve defense logic

https://docs.google.com/document/d/1RIuBvdvMICzfo7reAViT1Ln50ZYrj3gHK8popmsQMAM/edit#heading=h.hf6l9ht9fh39

Раздел "В работе. Защита"

closed time in 2 days

Nihisil

issue commentMahjongRepository/tenhou-python-bot

Improve defense logic

Основной костяк готов. Дальше будем гранулярно улучшать разные аспекты, в разных тикетах.

Nihisil

comment created time in 2 days

push eventMahjongRepository/tenhou-python-bot

bogachev-pa

commit sha bc2e69539740b8680e5b6d09266fd4721a14891f

add TileDanger class skeleton #58

view details

bogachev-pa

commit sha a3dc1dcedd173994f6524f0c5d71b35696f29ad4

impelement number of possible forms calculation #58

view details

Nihisil

commit sha e8cf510c2b1c082a1d1178437e472c9a9d4bdfe4

Remove `in_defence` flag

view details

bogachev-pa

commit sha 667de3e7fbd3d3b3adba3aa3f7abee01f4e4b928

fix ryanmen forms counting

view details

Nihisil

commit sha 2398a1cc8ce5061e4e35db2381a3b3bdfcab8886

Refactor defence logic to the new flow

view details

Nihisil

commit sha 71c2d45da7b1be3d752a22fd532ff59958a4f787

Refactor suji and kabe helpers

view details

Nihisil

commit sha 4c849a60258e964f6479a59cfa2b10cd2b24212f

Improve DefenceHandler interfaces

view details

Nihisil

commit sha d5c05a23d99539c4626bef189c83d0b31019ab04

Work in progress with defence

view details

Nihisil

commit sha e96cd144d501a1892767d7d8f30a9082bba3d4ef

Work in progress with defence

view details

bogachev-pa

commit sha 5bc77a70fb631556a49721037229946ca72f969b

convert TileDanger options to dictionary format

view details

Nihisil

commit sha bee85f5430997f6ebc28938ff2830c7e06373a76

Add honitsu detection logic

view details

Nihisil

commit sha cf175ac7a031d283678a20980a5b0fb6566e73f1

Add flake8 to the travis build pipeline

view details

Nihisil

commit sha bf340f4533518723e6501a2303b78abb8f1dd164

Fix flake8 warnings

view details

Nihisil

commit sha 4cde5c84e9caa0899926dd567eb2639b445d3544

Improve new defence logic structure and add more defence tests

view details

Nihisil

commit sha 835d6b272c64d727ed031b6a69516551e8172932

Improve architecture of defence module

view details

Nihisil

commit sha 10135cd0c22811d545489e535cad25c083a2f7b5

Merge branch 'dev' into defence_improvement

view details

Nihisil

commit sha 7fb5a1733f328973ad869e5b75404d8a0e10091d

Reformat code with black and isort

view details

Nihisil

commit sha fe71b47e1fa18a05978d4aeaf05b7c19f19e6aa7

Remove ability to assign other AI classes

view details

Nihisil

commit sha e1a178087279cd58e6fb80a8f18d844c58c4ce49

Fix regressions after moving to latest mahjong package

view details

Nihisil

commit sha ccd7670e4cac79cbde0d069fb1b7d51f9e77c934

Reorganize ai package

view details

push time in 2 days

delete branch MahjongRepository/tenhou-python-bot

delete branch : defence_improvement

delete time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha c5c9adfea301ed5d873c219def8d357739cce8ed

Fix GitHub actions

view details

push time in 2 days

PR closed MahjongRepository/tenhou-python-bot

Defence logic rework and various project improvements

We decided to completely rework previous badly designed defence logic. With new approach bot should be able to play more smarter.

+7650 -6605

0 comment

100 changed files

Nihisil

pr closed time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 80462d2276b19581f7792657a243b7c1cc3f7598

Run actions on dev branch as well

view details

push time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha c60268e942231d5459d5098e75558ae15fa836ba

Add more debug info

view details

push time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 8791ecea39053ddc1bfa1f6b458322eccfdf73fb

Add more debug info

view details

push time in 2 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 4ed50c327a4c24912c22a929e019dd2deab9698f

Integrate sentry crashes logging

view details

push time in 2 days

push eventMahjongRepository/mahjong-stat

Nihisil

commit sha 2986aa3b9e03f0d95740cfa9daa463829c14018a

Fixes to make the project runable

view details

push time in 3 days

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 550a2a872c4287adab6ce30c3440dc2141430a20

Fix relogin issue

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha cdc3972f0a295ee0addd53e3498ec7c0c39d18d1

Fix an issue with not correctly counted visible doras

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 724daaafca0667d50f650c07367e49c4746cbda4

Fix an issue with not correctly counted visible doras

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha e8258f225c5323d1a6bcda93241869ba9cd599e1

Keep danger borders separately for each enemy

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 31520632c0eee5f61bd918da5333c82215df42a3

Count aka dora in log reproducer

view details

push time in 3 days

issue closedMahjongRepository/tenhou-python-bot

Open hand issue

Нет нужды открываться на 3п.

Воспроизвести:

python reproducer.py --log 2020102111gm-0001-7994-2319cee0 --tile 3p --wind 2 --honba 2 --player Wanjirou --action enemy_discard

image

closed time in 3 days

Nihisil

issue commentMahjongRepository/tenhou-python-bot

Open hand issue

Бот открывается в формальный темпай и считает что напротив хоницу в пинах, поэтому 3с норм сброс.

Nihisil

comment created time in 3 days

issue openedMahjongRepository/tenhou-python-bot

Open hand issue

Нет нужды открываться на 3п.

Воспроизвести:

python reproducer.py --log 2020102111gm-0001-7994-2319cee0 --tile 3p --wind 2 --honba 2 --player Wanjirou --action enemy_discard

image

created time in 3 days

issue closedMahjongRepository/tenhou-python-bot

Wrong detected active yaku

Бот думает что у камичи якухай вместе с таньяо. Эти яку не совместимы и из-за этого у камичи считается дороже рука.

{
  "seat": 1,
  "threat_reason": {
    "id": "threatening_honitsu",
    "description": "Enemy opened hand has 3+ han",
    "melds": [
      {
        "type": "pon",
        "tiles_string": "111z",
        "tiles": [
          108,
          109,
          111
        ]
      },
      {
        "type": "chi",
        "tiles_string": "456s",
        "tiles": [
          84,
          90,
          95
        ]
      }
    ],
    "dora_count": 0,
    "melds_han": 4,
    "active_yaku": [
      {
        "id": "yakuhai"
      },
      {
        "id": "tanyao"
      },
      {
        "id": "honitsu",
        "chosen_suit": "is_sou"
      }
    ],
    "round_step": 8,
    "number_of_unverified_suji": 10,
    "suji_count_danger_border": 0,
    "assumed_hand_cost": 8000
  }
}

Воспроизвести:

python reproducer.py --log 2020102009gm-0009-0000-9b04a1ad --player NoName --wind 3 --honba 0 --tile 2s --action draw

image

closed time in 3 days

Nihisil

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 89e5d092ccf286b6d0fe8c769a0abc2f081f8679

We don't need float numbers for costs

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 48c09820f7e5d26141d496f9fc692975625164a8

Don't add tanyao and yakuhai together to the threat possible yaku

view details

push time in 3 days

issue closedMahjongRepository/tenhou-python-bot

Don't open hand when we are defending

На 7п тут не надо открывать руку.

Рофл ещё в том, что бот хотел скинуть 7п после чи, но тенха не дала из-за куикае и скинула 9п за бота.

Воспроизвести:

python reproducer.py --log 2020102008gm-0001-7994-9438a8f4 --player Wanjirou --wind 3 --honba 0 --tile 7p --action enemy_discard

image

closed time in 3 days

Nihisil

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 64df3fe11281da5d94c401d9a64edc4deeb2bd4d

Trying to fix bad open hands behaviour

view details

Nihisil

commit sha 57788b5afda994b9b2c5f34ec4adceb66a403457

Display logs in failed tests (useful for debugging)

view details

Nihisil

commit sha a264121580273ec0c80dd47cb79a602fe33d338d

Improve logs formatting

view details

Nihisil

commit sha ef6051702bfd7f6305880fbf5461332b5b1f59fa

Make sure that papertrail game id will be same for all bots

view details

Nihisil

commit sha 26df5b209c33f35381bac65fd1a393e5b35e68b0

Refactor tests location

view details

push time in 3 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 3d7322dbbf986d86f8e1f1f7cc6687cd29ee1098

Remove colors from file logs

view details

push time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 0c9b8a9577fb40439ea89cd7e6cb51b8bd393b1d

Fix division by zero

view details

push time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 8212fa39491a632233b84a99c6156531bb79bab6

Improve game reproducer

view details

push time in 4 days

issue openedMahjongRepository/tenhou-python-bot

Wrong detected active yaku

Бот думает что у камичи якухай вместе с таньяо. Эти яку не совместимы и из-за этого у камичи считается дороже рука.

{
  "seat": 1,
  "threat_reason": {
    "id": "threatening_honitsu",
    "description": "Enemy opened hand has 3+ han",
    "melds": [
      {
        "type": "pon",
        "tiles_string": "111z",
        "tiles": [
          108,
          109,
          111
        ]
      },
      {
        "type": "chi",
        "tiles_string": "456s",
        "tiles": [
          84,
          90,
          95
        ]
      }
    ],
    "dora_count": 0,
    "melds_han": 4,
    "active_yaku": [
      {
        "id": "yakuhai"
      },
      {
        "id": "tanyao"
      },
      {
        "id": "honitsu",
        "chosen_suit": "is_sou"
      }
    ],
    "round_step": 8,
    "number_of_unverified_suji": 10,
    "suji_count_danger_border": 0,
    "assumed_hand_cost": 8000
  }
}

Воспроизвести:

python reproducer.py --log 2020102009gm-0009-0000-9b04a1ad --player NoName --wind 3 --honba 0 --tile 2s --action draw

image

created time in 4 days

issue openedMahjongRepository/tenhou-python-bot

Not optimal discard?

Возможно кинуть 9м тут является вариантом получше, но это не точно. Надо разобраться.

Воспроизвести:

python reproducer.py --log 2020102009gm-0001-7994-5e2f46c0 --player Kaavi --wind 3 --honba 1 --tile 5m --action draw

image

created time in 4 days

issue openedMahjongRepository/tenhou-python-bot

Don't open hand when we are defending

На 7п тут не надо открывать руку.

Рофл ещё в том, что бот хотел скинуть 7п после чи, но тенха не дала из-за куикае и скинула 9п за бота.

Воспроизвести:

python reproducer.py --log 2020102008gm-0001-7994-9438a8f4 --player Wanjirou --wind 3 --honba 0 --tile 7p --action enemy_discard

image

created time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 1d85b025a67b1beffb793531e168b51e6db6c554

Move documentation from wiki to .md files

view details

push time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 623438757f8cdad00edc0afe32ac30d5bc356c9a

Use all safe tiles as genbutsu

view details

Nihisil

commit sha dc9195c8cbf9713402ba1a8692f505bc22133cbd

Don't count dead waits for hand value estimation

view details

Nihisil

commit sha b1e2ceb118457d36386d092dd37eeacbe75967a7

Calculate verified suji count based on enemy safe tiles, not on all revealed tiles

view details

push time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha ee73cedb128ceb37b887bcd9dde61a8e5525fc6c

Fix objects prints in decisions logger

view details

push time in 4 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 63f6978f28333d1da2ac69aa085ab189405e8732

WIP on new defence logic

view details

push time in 5 days

issue commentMahjongRepository/tenhou-python-bot

Try to discard safe tiles in attack mode

Будет имплементировано тут: https://github.com/MahjongRepository/tenhou-python-bot/issues/58

Nihisil

comment created time in 5 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 0b38a61089fc90626dea7d0670b8b6c3aaf6d3d3

WIP on new defence logic

view details

push time in 5 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha c0c506811f2575124d4ab730166063d4ad8ce9ed

It is illegal to play in phoenix lobby for the bot

view details

push time in 6 days

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 4bf8bbdfba0b82448265aaaa2aeea54a2146f0c8

Calculate hand cost for open hands as well

view details

push time in 8 days

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 804a2be87bd7439bddc9438409f0f515c3d447a1

Allow to change color of the player not for online tournaments as well

view details

push time in 16 days

pull request commentMahjongRepository/mahjong-portal

Fix MajSoul points history

:+1:

eIGato

comment created time in 19 days

push eventMahjongRepository/mahjong-portal

eIGato

commit sha 882030b5003a43f9c00b4c79aa33d013e256a277

Fix MajSoul points history

view details

Alexey

commit sha 3d18feb0c5947380ac1a615321d8a497ca516eb2

Merge pull request #89 from eIGato/bugfix/issue-82 Fix MajSoul points history

view details

push time in 19 days

PR merged MahjongRepository/mahjong-portal

Reviewers
Fix MajSoul points history

Fix #82

+55 -5

0 comment

2 changed files

eIGato

pr closed time in 19 days

issue closedMahjongRepository/mahjong-portal

Mahjong Soul. Выбирать только последний ранг для показа графика pt

Если игрок потерял ранг и потом его опять получил, то в график сейчас добавляются pt от обоих:

image

closed time in 19 days

Nihisil

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 730fcf58a1c7965dec6a6bd00c3fe11226b8dc93

Trying to fix issues with Mahjong Soul API

view details

push time in 21 days

created tagMahjongRepository/mahjong_soul_api

tagv0.8.125

Python wrapper for the Mahjong Soul (Majsoul) Protobuf objects. It allows to use their API.

created time in 21 days

release MahjongRepository/mahjong_soul_api

v0.8.125

released time in 21 days

push eventMahjongRepository/mahjong_soul_api

Nihisil

commit sha 5c07f77368448df73681529d01687155bcde6dd9

Update protocol to 0.8.125 version

view details

push time in 21 days

issue commentMahjongRepository/mahjong-portal

Починить добавление MS аккаунта

Временный фикс, поставить точку остановки в дебагере на строке if (!n.players || 0 == n.players.length) и поискать юзера через интерфейс. При остановке можно будет вытащить id юзера.

Nihisil

comment created time in 21 days

issue openedMahjongRepository/mahjong-portal

Починить добавление tenhou аккаунта

Сервис http://arcturus.su/tenhou/ranking/ закрылся.

Мы использовали его при добавлении нового аккаунта на портал. Для добавления нам нужно знать все игры игрока, чтобы правильно рассчитать дан/кю.

Теперь нужно искать новые источники для получения всех игр игрока.

  1. Возможный источник https://nodocchi.moe/, но тут есть несколько минусов. Они работают не очень быстро и в прошлый раз когда я попытался написать скарпинг этого сервиса, мой IP там забанили. Так что тут надо будет с ними списываться и просить разрешение на использование их сервиса (и не факт что они разрешат).
  2. Второй источник это http://tenhou.net/sc/raw/ Тут можно загрузить архивы со списком всех игр за прошлые года (2009.zip) и архивы для дней текущего года (sca20200928.log.gz). Т.е. при добавлении нового игрока нужно будет пройтись по всем прошлым годовым архивам и по всем дневным архивам в этом году в поисках игр игрока.

created time in a month

issue openedMahjongRepository/mahjong-portal

Починить добавление MS аккаунта

Для получения статистики MS аккаунта нам нужно знать внутренний ID игрока. Этот ID никак нельзя получить из интерфейса клиента, его можно только узнать из запросов к API.

Раньше у меня был код который модифицировал JS объект GameMgr в консоли разработчика, там в дебрях этого объекта есть on message callback который можно переопределить и добавить туда console.log(message). После этого если в клиенте поискать игрока, то в консоли будет виден его внутренний ID.

После очередного обновления мой код перестал работать, а потом я его потерял.

Задача состоит в переписывании этого кода или в нахождении альтернативного пути получения внутреннего ID игрока.

created time in a month

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 6922e5ba81a7d5a029bb58a6ad5eb633a6036d56

Fix lint

view details

push time in a month

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 61045130688b1091b481c5e920fd5cbe5f339556

Revert IORMC fixes

view details

Nihisil

commit sha 3c37ba15dca861e7c2fcfe010534e49688a54a51

Disable arcturus related cron command

view details

Nihisil

commit sha eb3027c6de2698bceb0982b1ee8968deeb1027e4

Hide info about adding new accounts

view details

push time in a month

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 2ee29c06e58007049810cd6888c86d499218e222

Skip arcturus API calls for now

view details

push time in a month

push eventMahjongRepository/mahjong-portal

Nihisil

commit sha 4783839e318ae6b823d2b962627cb915fdf0185e

Add fixed sortition for IORMC qualifiers

view details

push time in a month

PR closed MahjongRepository/mahjong-ai

Bump tensorflow-gpu from 2.2.0 to 2.2.1 dependencies

Bumps tensorflow-gpu from 2.2.0 to 2.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tensorflow/tensorflow/releases">tensorflow-gpu's releases</a>.</em></p> <blockquote> <h2>TensorFlow 2.2.1</h2> <h1>Release 2.2.1</h1> <h2>Bug Fixes and Other Changes</h2> <ul> <li>Fixes an undefined behavior causing a segfault in <code>tf.raw_ops.Switch</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15190">CVE-2020-15190</a>)</li> <li>Fixes three vulnerabilities in conversion to DLPack format (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15191">CVE-2020-15191</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15192">CVE-2020-15192</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15193">CVE-2020-15193</a>)</li> <li>Fixes two vulnerabilities in <code>SparseFillEmptyRowsGrad</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15194">CVE-2020-15194</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15195">CVE-2020-15195</a>)</li> <li>Fixes an integer truncation vulnerability in code using the work sharder API (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15202">CVE-2020-15202</a>)</li> <li>Fixes a format string vulnerability in <code>tf.strings.as_string</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15203">CVE-2020-15203</a>)</li> <li>Fixes segfault raised by calling session-only ops in eager mode (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15204">CVE-2020-15204</a>)</li> <li>Fixes data leak and potential ASLR violation from <code>tf.raw_ops.StringNGrams</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15205">CVE-2020-15205</a>)</li> <li>Fixes segfaults caused by incomplete <code>SavedModel</code> validation (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15206">CVE-2020-15206</a>)</li> <li>Fixes a data corruption due to a bug in negative indexing support in TFLite (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15207">CVE-2020-15207</a>)</li> <li>Fixes a data corruption due to dimension mismatch in TFLite (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15208">CVE-2020-15208</a>)</li> <li>Fixes several vulnerabilities in TFLite saved model format (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15209">CVE-2020-15209</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15210">CVE-2020-15210</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15211">CVE-2020-15211</a>)</li> <li>Fixes several vulnerabilities in TFLite implementation of segment sum (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15212">CVE-2020-15212</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15213">CVE-2020-15213</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15214">CVE-2020-15214</a>)</li> <li>Updates <code>sqlite3</code> to <code>3.33.00</code> to handle <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327">CVE-2020-9327</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655">CVE-2020-11655</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656">CVE-2020-11656</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434">CVE-2020-13434</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435">CVE-2020-13435</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630">CVE-2020-13630</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631">CVE-2020-13631</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871">CVE-2020-13871</a>, and <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358">CVE-2020-15358</a>.</li> <li>Fixes deprecated usage of <code>collections</code> API</li> <li>Removes <code>scipy</code> dependency from <code>setup.py</code> since TensorFlow does not need it to install the pip package</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md">tensorflow-gpu's changelog</a>.</em></p> <blockquote> <h1>Release 2.2.1</h1> <h2>Bug Fixes and Other Changes</h2> <ul> <li>Fixes an undefined behavior causing a segfault in <code>tf.raw_ops.Switch</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15190">CVE-2020-15190</a>)</li> <li>Fixes three vulnerabilities in conversion to DLPack format (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15191">CVE-2020-15191</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15192">CVE-2020-15192</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15193">CVE-2020-15193</a>)</li> <li>Fixes two vulnerabilities in <code>SparseFillEmptyRowsGrad</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15194">CVE-2020-15194</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15195">CVE-2020-15195</a>)</li> <li>Fixes an integer truncation vulnerability in code using the work sharder API (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15202">CVE-2020-15202</a>)</li> <li>Fixes a format string vulnerability in <code>tf.strings.as_string</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15203">CVE-2020-15203</a>)</li> <li>Fixes segfault raised by calling session-only ops in eager mode (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15204">CVE-2020-15204</a>)</li> <li>Fixes data leak and potential ASLR violation from <code>tf.raw_ops.StringNGrams</code> (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15205">CVE-2020-15205</a>)</li> <li>Fixes segfaults caused by incomplete <code>SavedModel</code> validation (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15206">CVE-2020-15206</a>)</li> <li>Fixes a data corruption due to a bug in negative indexing support in TFLite (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15207">CVE-2020-15207</a>)</li> <li>Fixes a data corruption due to dimension mismatch in TFLite (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15208">CVE-2020-15208</a>)</li> <li>Fixes several vulnerabilities in TFLite saved model format (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15209">CVE-2020-15209</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15210">CVE-2020-15210</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15211">CVE-2020-15211</a>)</li> <li>Fixes several vulnerabilities in TFLite implementation of segment sum (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15212">CVE-2020-15212</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15213">CVE-2020-15213</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15214">CVE-2020-15214</a>)</li> <li>Updates <code>sqlite3</code> to <code>3.33.00</code> to handle <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327">CVE-2020-9327</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655">CVE-2020-11655</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656">CVE-2020-11656</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434">CVE-2020-13434</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435">CVE-2020-13435</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630">CVE-2020-13630</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631">CVE-2020-13631</a>, <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871">CVE-2020-13871</a>, and <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358">CVE-2020-15358</a>.</li> <li>Fixes deprecated usage of <code>collections</code> API</li> <li>Removes <code>scipy</code> dependency from <code>setup.py</code> since TensorFlow does not need it to install the pip package</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tensorflow/tensorflow/commit/25fba035f3e453d94490932096282c7b0624bbb3"><code>25fba03</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tensorflow/tensorflow/issues/43445">#43445</a> from tensorflow-jenkins/version-numbers-2.2.1-25147</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/2d1d4daf0df98a1667207ca75212da70c9c7ce31"><code>2d1d4da</code></a> Update version numbers to 2.2.1</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/8f82cf477a2f5f064bf02508d339e393334cfd7e"><code>8f82cf4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tensorflow/tensorflow/issues/43440">#43440</a> from tensorflow-jenkins/relnotes-2.2.1-29132</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/a0de5f9a9980a6df00268f2d3a2879b237fc6d16"><code>a0de5f9</code></a> Update RELEASE.md</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/5fbfef3af52b76656d774404c296a6197521749a"><code>5fbfef3</code></a> Insert release notes place-fill</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/407f894147f64c278bb64c292d9002772eb36172"><code>407f894</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tensorflow/tensorflow/issues/43413">#43413</a> from tensorflow/mm-fix-2.2</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/c1e4f344080afc5aa54fde0a6375ab72a6446d9b"><code>c1e4f34</code></a> Add missing import</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/d5b42b959e41b199bd66d6d4a0930ede2670d08b"><code>d5b42b9</code></a> No <code>disable_tfrt</code> present on this branch</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/4b4f910afde4beea08630ac2ff9f18a14b82720e"><code>4b4f910</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tensorflow/tensorflow/issues/43392">#43392</a> from tensorflow/mihaimaruseac-patch-3</li> <li><a href="https://github.com/tensorflow/tensorflow/commit/c247a2d7229f23f7487fbf83a7fbc1f8cb10f192"><code>c247a2d</code></a> Solve leftover from merge conflict</li> <li>Additional commits viewable in <a href="https://github.com/tensorflow/tensorflow/compare/v2.2.0...v2.2.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+1 -1

0 comment

1 changed file

dependabot[bot]

pr closed time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 36e6a77afd25f6e6ab9be83df59a72d0911f872e

More WIP around new defence logic

view details

push time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 9d828becaf91c2ecf799beb666d9035a9600a940

More WIP about new defence logic

view details

push time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 20e4a956cfd9a1db0be159c2b3123c1824e0a52b

Run pytests in parallel

view details

Nihisil

commit sha 6be980bab867a1435be86907afb838d9de4c78ba

Add more tile danger metrics

view details

push time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha c10046d64893ceb0e6671990020ecde5473b8106

Start 0.5.0-dev version

view details

Nihisil

commit sha 9531445ad54ac09bf67329f29f697f9eee900a74

WIP Determining tiles danger

view details

push time in a month

issue closedMahjongRepository/tenhou-python-bot

Add decisions logger

Он нам нужен для более простого дебага решений бота. Желательно добавить его во все части (защита, сбор, открытия)

closed time in a month

Nihisil

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 5b71f61a643986493012d8ed0b69217d9e4d58f5

Remove Python 3.5 support

view details

push time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha ff3593d03b3551cb2b56cdc113e4b32c94e1ddbe

Fix github actions

view details

push time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 45a88b00e18063b7c88a5114f7a51b3148d6df47

Fix github actions

view details

push time in a month

GollumEvent

PR closed MahjongRepository/tenhou-python-bot

Reviewers
Attack/defence rework

В этом PR должны будут решены задачи #58, #68.

+5736 -5996

0 comment

99 changed files

bogachev-pa

pr closed time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 1f08f1baa80efe71dd1f4c072e5a80fcd4d47280

Replace unittests with pytest

view details

Nihisil

commit sha 83b485f89f0b41520a0fbc7a8471c4ffcc3fb51a

Remove travis and add github actions

view details

push time in a month

startedhanswilw/codemod-unittest-to-pytest-asserts

started time in a month

push eventMahjongRepository/tenhou-python-bot

Nihisil

commit sha 7fb5a1733f328973ad869e5b75404d8a0e10091d

Reformat code with black and isort

view details

Nihisil

commit sha fe71b47e1fa18a05978d4aeaf05b7c19f19e6aa7

Remove ability to assign other AI classes

view details

Nihisil

commit sha e1a178087279cd58e6fb80a8f18d844c58c4ce49

Fix regressions after moving to latest mahjong package

view details

Nihisil

commit sha ccd7670e4cac79cbde0d069fb1b7d51f9e77c934

Reorganize ai package

view details

push time in a month

push eventMahjongRepository/phoenix-logs

Nihisil

commit sha 22e2be2c8a1502dd11a63168aa7ac6da5e9aecfc

Enable output for debug

view details

push time in a month

push eventMahjongRepository/phoenix-logs

Nihisil

commit sha 1075abddd66a7550ec4775fa2bd781c02d088d4e

Disable logging for live games

view details

push time in a month

issue commentgeigi/cozy

Dark mode is not working

The app looks like the regular app.

Nihisil

comment created time in a month

issue openedgeigi/cozy

Dark mode is not working

Bug/Feature description

When I switch to Dark mode in settings nothing happens (I tried to restart the app).

System Information

  • Operating System: Linux Mint 20 Cinnamon
  • Installation source: Flatpak
  • Version of cozy: 0.6.19

Not sure if that can help, but this is my OS theme settings: image

created time in a month

push eventMahjongRepository/phoenix-logs

Nihisil

commit sha 1d5de68b3caf7812d1333c16c0a6e947d5ed9438

Allow to download yakuman log ids for specified year and month

view details

Nihisil

commit sha 6771c5941b0d1f1a3a1c21e54012dcc508ad741d

Add option to provide full path to the database file

view details

push time in 2 months

push eventMahjongRepository/mahjong_soul_api

Nihisil

commit sha 420584457bb4313b5d759f6f3d8ac68f750a46df

Add more details to README

view details

push time in 2 months

created tagMahjongRepository/mahjong_soul_api

tagv0.8.93

Python connectors to the Mahjong Soul API (Majsoul)

created time in 2 months

release MahjongRepository/mahjong_soul_api

v0.8.93

released time in 2 months

delete tag MahjongRepository/mahjong_soul_api

delete tag : v0.8.93

delete time in 2 months

push eventMahjongRepository/mahjong_soul_api

Nihisil

commit sha 52e4e52f78c7ae6fb812cb87479ec94fede85ec4

Update pip version

view details

push time in 2 months

created tagMahjongRepository/mahjong_soul_api

tagv0.8.93

Python connectors to the Mahjong Soul API (Majsoul)

created time in 2 months

more