r/warofthering • • 27d ago

War of the Ring online

I would invite anybody to checkout my online War of the Ring fan project. No install needed, play in the browser against humans or bots!

https://wotr.behindmedia.com

134 Upvotes

57 comments sorted by

12

u/Bikkel77 26d ago

A few tips for the fans:

- point the music to a folder containing the score of Lord of the Rings (e.g. from the movie) and it will auto-select appropriate tracks
- you can select different map settings, whatever suits your preference
- there is support for localization, currently English and Spanish are supported, but it is not that hard to support more languages.
- for newcomers: there is a tutorial mode, a bot vs bot (watch) mode, suggest a move, tips and full rules reference
- text size and animation speed can be tweaked.
- you can replay and analyze your games, and continue from a certain position.

My main focus right now is the bot/engine improvement. It is based on self-learning and takes a huge amount of compute and time (I have about 8 machines running full time on it). Flagging dubious moves helps a lot!

1

u/FlyCurrent 26d ago

How does one flag dubious moves?

1

u/Bikkel77 26d ago

There’s an option in the menu and a button during the animation

1

u/AlexTheRedditor97 26d ago

Excited to see how it can improve

1

u/Nikkh98 15d ago

Is/will there be a feature to show dice stats? I'm curious some games who's rolling more sixes or getting a low amount of musters, etc.

5

u/AMAZINGLY_AWESOME_Dr 26d ago

Awesome, I send a request! What is the foundation for the bots? Can it be replicated by paper (i prefer to play without screen), or too complex?

5

u/Bikkel77 26d ago

The bots play through the open WOTR protocol (https://github.com/behindmedia/wotr-protocol). That is not tied to the UI so that would be possible to expose in other ways as well.

2

u/Bikkel77 21d ago

Just to give an update. Thanks for all the feedback/bug reports on the site. I greatly appreciate it.

- Take backs/undo has been extended. You should be able to undo a move within the first 30 second after a move while the opponent did not make one already. Also you can enable confirmation for every move before committing to it. In addition you can request take backs (at discretion of the other player). A point where hidden information was revealed (dice, cards, etc) is always a hard stop.
- A UI improvement round is in the works to reduce the map clutter for smaller screens and to address phones.
- There is a new release of the bot model about once every two days which takes the reported mistakes into account. Those mistakes are taken as regression tests, it is not input for the model. Improved learning should figure out how to avoid the mistakes by heart. This way it is also free to invent new/better ways of playing than humans currently do.
- I'll probably implement something for users to be able to vote for improvements to know where the time and effort should go. A lot of users requested better undo/take backs and UI improvements for smaller screens for example.

2

u/pferden 19d ago

Did it stop working on ipad? I thought i was able to run it once but not anymore…

2

u/Bikkel77 18d ago

I’m working on a redesign which works on smaller devices (phone/tablet)

1

u/pferden 18d ago

Oh cool!

18

u/ozzybones 26d ago

I tried it, it's incredibly well made, all of the cards are scripted perfectly, once you learn the interface it's intuitive

1

u/Bikkel77 17d ago

The UI has been completely revamped and fixed to remove clutter and support both phone and tablet.

Install the web site as a web app to get a native experience:

- iOS: https://support.apple.com/en-me/guide/iphone/iphea86e5236/ios
- Android: https://support.google.com/chrome/answer/9658361?hl=en&co=GENIE.Platform%3DAndroid&ai1hc=1

4

u/Not_My_Emperor 26d ago

So it's just an empty black screen when I log in. Am I missing something?

1

u/MeatPsychological622 25d ago

Great 👏. Is it playable on iphone? I tried and it starts, several windows appears then it kind of “crushes” and goes back to main menu itself

4

u/Bikkel77 25d ago

Working on a phone compatible UI. It is in the pipeline…

1

u/MeatPsychological622 25d ago

Nice, really looking forward to it…

1

u/ZoundbieStudio 24d ago

Plus one for the Iphone port. Would be a dream!

1

u/Nyxus14 24d ago

Does this reenforce the rules of the game? Would it, for example, prevent me from playing a card that I don’t meet the condition to play?

2

u/Bikkel77 24d ago

Yes for sure.

1

u/French_Twist 20d ago

Why make people sign up? That instantly puts me off.

3

u/Bikkel77 20d ago

You can use any username and relay email address. It’s to track issues and provide free improvements for you! Also to be able to keep malicious traffic out.

0

u/hlazlo 17d ago

While I don't appreciate the attitude of the person you're replying to and have no problem with needing an account to play (after all, how would one handle persistent asynchronous games), I can't help but wonder what you mean by "and provide free improvements."

Why would making people sign up allow you to provide improvements at no cost?

1

u/SapinBaleine 1d ago edited 1d ago

This is amazing and I used it to do new things. But something is really frustrating...the bot cheats the dice. Let me tell you how I found out.

I started a game as FP and, because of cards to separate companions further I moved the whole fellowships to rohan and been able to crown aragorn turn 1. On the second turn I was besieging a tiny Orthanc with most of the companions but the army had 4hp. The bot played an isengard card bringing a tiny army of 4 uruk next to orthanc and then attacked with it. 4 rolls without rerolls and without a card. All were hits and my army as well as all the companions were gone. That's 1,23% chance of happening and it happens at this exact moment. Weird.

I try another game, same strategy. End up occupying dol guldur with dwarves with companions, Moria under siege and Orthanc as well with this time a full stack including 5 elites, GtW and Aragorn. Saved a turn before and attacked. I have anduril, an ent card, daylight, secret fire...good stuff and inside there is just 2/3 and saruman. I must have done 60 rolls between rolls and rerolls and I cannot get a 6. Now we are in the 0,00X% I changed the order of action and it doesnt matter. After downgrading all 5 elites and playing all the cards finally it fell but that's just stupid.

Rolls are definitely predetermined in a really weird way. Anyway, FPMV is fun.

edit: after further testing, the same sequences lead to same dice roll. Thats means that throwing 60 times without 6 is kinda normal if the sequence is the same. But the Rng is still weirdly punishing regardless of how it repeats itself with equal sequences. Even with different sequences, the siege always lasts 5 rounds again with 5/5/5 including 2 auto hit and one roll on 5+, and sometimes it's not even enough after reducing 5 elites. Chances of that are less than 3%.

1

u/Bikkel77 1d ago edited 1d ago

Thanks for playing, and for writing this up. I'm glad FPMV is fun!

I get why it looked rigged, but the bot can't see or change the dice. Here's what's going on:

Dice are seeded per game. Each game has a random number generator that starts from the game's seed. Every roll, card draw and Hunt tile comes from it, in order. That's how replays, undo and saves stay exact: a game is just its seed plus the moves. The generator's current state is part of the save.

So reloading a save gives you the same dice. If you load a save from a turn earlier and attack again, the battle gets the same next numbers from the generator. Changing the order of your actions doesn't help unless one of those actions rolls or draws something. Moving armies or playing a card that rolls nothing uses up no numbers. So if you reloaded a few times, you were watching the same unlucky sequence over and over, and those repeats inflate your count of 60 rolls without a 6. Remember too that attacking a Stronghold under siege means you only hit on 6s, so a dry streak there hurts.

The bot plays without knowing the dice. Before every simulation it reshuffles everything it can't see: your hand, the deck order and the future dice. We test that two positions differing only in hidden information get exactly the same move from the bot. It doesn't know a roll is coming up good.

The Orthanc attack was a gamble that paid off. Four Uruks all hitting is (1/3)^4 ≈ 1.2%, as you worked out. Look at the stakes, though: if your army is wiped out, every Companion with it goes too. A long shot at the whole Fellowship's escort is worth taking, so the bot takes it, and sometimes it lands. It's brutal, but it's legit.

If you still have the save or the game, please send it in through Feedback → Report a bug in the menu. I'll replay that battle and check every die. If something is actually wrong I want to know.

1

u/SapinBaleine 22h ago

Hey thanks for the long answer! I understand the RNG order repeating itself. So in the end what I found the most suspicious was that when it both mattered enormously, suddenly the 1.2% and 2.6% chances of a specific outcome were the ones coming out. For the rest i can see exactly what you described. Drawing a card before the siege, or battling in different order always changed the dice result but the outcome always ended up in the low range of possibilities. And since it happened twice on a siege defended by the bot I find it suspicious. I dont have the save for the 4 uruk situation but I do have the other if that helps. In any case thank you for the game, I still cannot believe it works with all the crazy rules, and investigating!

3

u/Cec_Patu 27d ago

Wow I would love to try It!

3

u/Macoron 26d ago

Way better than Java, very cool.

3

u/FlyCurrent 26d ago

I am also a user. I like it, its promising. I wish AI was smarter. It constantly wastes C dice by moving Nazgul around needlessly

2

u/Decarazor 26d ago

Wow! Just, wow! Well done!!!

2

u/ClausTheDangerMouse 26d ago

Just played my first game. I was very impressed, good job.

I would just suggest having the action dialogue stretched horizontally rather than vertically. It tended to block my view of the board. Also when choosing a place to move from, once I click a location option, zoom to that location on the map.

2

u/100seriesLC 26d ago

Thank you. I have been too intimidated to learn on my own, this will help me a lot!

1

u/SlithyJabberwock 27d ago

I have no one around to play with so this would be great!

1

u/New_Raise_157 27d ago

Im interested

1

u/Red4Arsenal 26d ago

Will you add expansions?

1

u/danmalluk 26d ago

This looks great, congrats!

Looking forward to playing

1

u/Cripp 26d ago

Looks great! Would love to play this when I have no physical games planned

1

u/Cerborus 26d ago

My God I'm excited for this.

1

u/machomateo123 26d ago

Woah this is exactly what I’ve been looking for.

1

u/AlexTheRedditor97 26d ago

Wow thank you so much for this! Exactly what I’ve always hoped for

1

u/CreativeCr0w 26d ago

Cool! I just tested it out a bit, seems promising. It's good that there's a game log of past actions, since sometimes I get distracted and miss my opponents use of a die completely. Playing against the bot is pretty entertaining on hard. This is just something I've been waiting for, since our chances to play among friends are something like once-twice a month. Will there be more expansions included in the future?

1

u/Dive4Riches 25d ago

Ran a bot game through last night.... absolutely lives up to the hype. Stellar job! The presentation....even the map options are straight fire.

1

u/ziptgh79 23d ago

Truly incredible, thank you!

1

u/machomateo123 23d ago

I’ve played two full games. Normal bot beat me but I was two dice away from winning military victory with shadow. Easy bot I beat playing fellowship.

Not sure if easy makes my dice have better results because shadow got very poor results attacking/defending while I was getting hits on them.

It’s amazing and it plays seamlessly, love that I can just leave the game and it picks up right where I left it. Great rules enforcing and can’t believe that I can play a game in 2 hours.

Great job and will keep playing. So much fun.

1

u/pzrapnbeast 22d ago

Do you have a discord where we can post questions/feedback?

1

u/Equivalent_Secret73 21d ago

I like it a lot. Played FP against normal bot, close match, I won on military victory, seems like he overdefended Umbar and let me take far harad 1reg at near farad, 2 regulars at far, while at 3vp. I also threatened gundabad, but farad was my only real wincon at this point

1

u/hlazlo 17d ago

This is great. Thank you for releasing this.

Don't let people who insist on sharing their opinions on AI discourage you. While I'm sure everyone would prefer no AI to be used for anything, anywhere, ever, I'm glad this project exists.

It might mean getting to play WOTR again with my one friend who's no longer nearby.

1

u/ZippyDan 17d ago

Considering this will inevitably get shut down by Ares, have you considered making it open source so that it can live on even after that happens?

Revealing all the tools you used to make it will also help others iterate on your work.

1

u/journoengland 17d ago

Honestly, this is such an incredible product. I can’t stop playing it!!! Hats off to you and the development team, you’ve made something genuinely great here

1

u/Squatting-Monk 7d ago

Love it! Is there a dedicated discord for this community?

0

u/vyolin 23d ago

Unfortunate that this is AI-built but looks decent and the bot protocol is well done and probably the best component <3

-2

u/dwardman 23d ago

Ai slop

2

u/Bikkel77 22d ago

Thanks for the comment! I actually started the project 10 years ago, coding the rules of the game, the cards, and the map, frustrated by the horrible Java client that existed. Yet it proved to be too big a project to tackle realistically as a hobby. My goal was at first to just create a text based opponent to play against, with the physical board next to it. Recently because of AI this project finally became feasible. I spent most of my spare time on this for the last two months and had to think through the entire architecture, design and the engine. I bought several machines, including 2 Mac mini's, spent credit on AWS, Claude, spent hosting fees for the site, investigated how to do proper self learning (Alpha zero style) and set up automatic watches for fixing open issues and bug reports. At the end of the day I charge literally zero for it. What did you do recently?

1

u/dwardman 22d ago

Thanks for your reply. Can I ask what parts of this project proved so difficult for you when you first started, and what parts you used AI for?

1

u/Bikkel77 22d ago

The hardest by far is the engine/bot I would say. I use AI for all implementation parts, but getting the model correct is not trivial and requires quite some tuning (width/depth of the machine learning model, the inputs, outputs, whether to use 1 model or separate value/policy models, whether to incorporate rules as weights and to play out certain situations like battles). There is a lot of chance involved and measuring whether an improvement has effect takes a lot of games (~ 400 matches to get a decent confidence) so iteration is slow.

1

u/dwardman 22d ago

After doing some more research on your work, your background, and the alpha zero technique you mentioned, I commend you for the effort and time you spent on making this and on a technical and user experience level I do appreciate it. However I do feel that particularly the art used for the cards and game pieces give the project an ill look and don't convey the care you spent on it. I would personally prefer the text based approach you mentioned to generated images, or perhaps some of the lotr paintings out there, as the board game used originally. Of course, it's your project to do as you see fit, but just my two cents. You may feel my opinion is too strong but I personally feel it is nearly against the spirit of Tolkien to outsource the presentation via something generated by a machine and not human crafted.