Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old August 19, 2013, 12:20   #11
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,759
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Scatha View Post
Of any two *consecutive* triangular numbers.
*facepalm*

That's what I meant...
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old August 19, 2013, 12:27   #12
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 904
half is on a distinguished road
Quote:
Originally Posted by Nick View Post
That is really cool. For anyone who doesn't believe me, note that a parabola is the graph of y = x, and the sum of any two triangular numbers is a square
Indeed, if you draw out all the combinations of rolls you and your opponent could get, then form a square (either 10x10 or 20x20). I'll illustrate with a little 6x6 one to save space. The chances of hitting are illustrated with 'o' and missing with '.'. The horizontal axis is the defender's roll. The vertical is the attacker's roll. The chances of hitting literally start as increasing triangles until they clip the edges, then the chances of missing are decreasing triangles. Hopefully that will make it more intuitive for some people.

Code:
 123456
1......   ......   ......   ......   ......   o.....   oo....   ooo...   etc
2......   ......   ......   ......   o.....   oo....   ooo...   oooo..   
3......   ......   ......   o.....   oo....   ooo...   oooo..   ooooo.   
4......   ......   o.....   oo....   ooo...   oooo..   ooooo.   oooooo   
5......   o.....   oo....   ooo...   oooo..   ooooo.   oooooo   oooooo   
6o.....   oo....   ooo...   oooo..   ooooo.   oooooo   oooooo   oooooo
half is offline   Reply With Quote
Old August 19, 2013, 13:04   #13
taptap
Knight
 
Join Date: Jan 2013
Posts: 710
taptap is on a distinguished road
Yes, I do like the system. I am very happy that you didn't spoil it by introducing automatic hits on a rolled 20 (as a lot of table top RPGs do) - so you allow different styles to prosper although every style hits limits by different kind of opponents. But looking at the tables you realize how amazing a -1, 2d5 mithril corslet of resilience really is
taptap is offline   Reply With Quote
Old August 19, 2013, 14:24   #14
kryft
Rookie
 
Join Date: Aug 2013
Posts: 20
kryft is on a distinguished road
I've been writing a little tool for myself that basically takes a char dump and the name of a monster (the tool reads monster.txt) and spits out two probability distributions, one for the melee damage dealt by the player to the monster in a single turn and another for the melee damage dealt by the monster to the player. The tool is written in Haskell using the probabilistic functional programming library, which means that if you use it interactively from within the interpreter, you can easily compute probabilities for arbitrary events.

For example,

meVsWarg <- fight "kryft.txt" "Warg"
(> 10) ?? (defend meVsWarg)
mean (attack meVsWarg)

would pit the character in "kryft.txt" against a warg and then calculate the probability that the warg would deal more than 10 points of damage with a single attack (taking into account both the possibility of missing and the possibility of getting extra dice from criticals).

I wrote this for myself for fun, but looking at this thread it occurred to me that perhaps others might be interested too. I'm happy to share the code if anyone else wants to play with it. It's not quite finished yet (but should be soon), and it's a bit simplistic; for example, the distributions are for a single attack, so it doesn't need to consider player or monster speed. I'm going to take brands and resistances/vulnerabilities into account automatically, as well as certain player abilities that are always active, but I will most likely ignore abilities that give situational bonuses, such as Dodging or Concentration.

You shouldn't need to know any Haskell to use it (at least if I write a readme), and installing the Haskell platform is easy on windows, mac and linux. I suppose I could also make a command line executable that takes a char dump and a monster name and outputs the distributions (and some statistics and maybe the CDFs) as text; this could even be distributed as a binary for people who don't want to install anything.

Last edited by kryft; August 19, 2013 at 14:32.
kryft is offline   Reply With Quote
Old August 20, 2013, 14:36   #15
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,386
debo is on a distinguished road
I would like to see this code!
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote
Old August 20, 2013, 22:28   #16
taptap
Knight
 
Join Date: Jan 2013
Posts: 710
taptap is on a distinguished road
Quote:
Originally Posted by debo View Post
I would like to see this code!
How you have a kryft signature when this was the first post of kryft here? You are talking about Sil somewhere else?
taptap is offline   Reply With Quote
Old August 21, 2013, 10:31   #17
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 904
half is on a distinguished road
Quote:
Originally Posted by taptap View Post
How you have a kryft signature when this was the first post of kryft here? You are talking about Sil somewhere else?
Sprung!

Actually kryft has an amazing comment history now. A good joke and a useful Sil-related program (in my favourite language!), all with just one post!
half is offline   Reply With Quote
Old August 21, 2013, 17:39   #18
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,386
debo is on a distinguished road
Quote:
Originally Posted by taptap View Post
You are talking about Sil somewhere else?
##sil, although "talking about sil" is sort of a stretch description of what goes on there

EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote
Old August 21, 2013, 21:25   #19
taptap
Knight
 
Join Date: Jan 2013
Posts: 710
taptap is on a distinguished road
Quote:
Originally Posted by debo View Post
##sil, although "talking about sil" is sort of a stretch description of what goes on there

EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
I thought everyone knows that this quote is original debo. I admittedly still don't really understand what ##sil is supposed to be.
taptap is offline   Reply With Quote
Old August 21, 2013, 21:57   #20
HallucinationMushroom
Knight
 
Join Date: Apr 2007
Location: Indiana, U.S.A.
Age: 42
Posts: 780
HallucinationMushroom is on a distinguished road
Quote:
Originally Posted by debo View Post
##sil, although "talking about sil" is sort of a stretch description of what goes on there

EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
Ha! Well, in that case, I want proper AP citation style for some of your ladder characters.

Mushroom, H. (2012). The artistry start: Simplification through smithing. The Roguelike Gazetteer, 3(1), 17-21.
HallucinationMushroom is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sil: stealth melee assassin BlueFish Sil 9 May 3, 2013 08:03
UI: base-to-hit for shoot and melee are not intutitive Pete Mack v4 18 April 30, 2013 22:59
Chance of spell failure tony Vanilla 1 June 22, 2011 08:30
Best melee? Swede2378 Vanilla 22 June 16, 2010 20:03
Any chance for (compiled) Angband 3.0.9 debian file? ivanj Vanilla 9 November 3, 2007 11:29


All times are GMT +1. The time now is 16:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.