Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45853 > unrolled thread

Re: What was the project that made you feel skilled in Python?

Started byBen Finney <ben+python@benfinney.id.au>
First post2013-05-24 09:32 +1000
Last post2013-05-24 09:32 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: What was the project that made you feel skilled in Python? Ben Finney <ben+python@benfinney.id.au> - 2013-05-24 09:32 +1000

#45853 — Re: What was the project that made you feel skilled in Python?

FromBen Finney <ben+python@benfinney.id.au>
Date2013-05-24 09:32 +1000
SubjectRe: What was the project that made you feel skilled in Python?
Message-ID<mailman.2044.1369351979.3114.python-list@python.org>
Chris Angelico <rosuav@gmail.com> writes:

> Ben Finney <ben+python@benfinney.id.au> wrote:
> > This resulted in a library for rolling dice in different
> > combinations, and looking up result tables
> > <URL:https://pypi.python.org/pypi/alea>.
>
> Fun fun! Of course, when I hear "rolling dice in different
> combinations", my mind immediately turns to Dungeons and Dragons,
> where it's plausible to roll d20+7, then roll 2d8+d6+12 to figure out
> how much damage you did...

Yeah, and lots of board games use custom dice with faces specific to
that game (symbols, non-consecutive numbers, etc.), so the Die class
allows the faces to be any object the application needs.

> But the hard part of board games is usually the board.

A lot of the board games I'm intrigued by don't have much of a board;
they use custom cards and tokens and (maybe) dice, and the “board” is an
abstraction of where all the pieces are on the table.

> I used to spend ages trying to draw up a half-decent board, and ended
> up giving up. By "simulate", I'm guessing you mean that you didn't
> actually draw anything of the sort?

Right. The (never completed) application was to simulate the mechanics
of that particular game so I could see how it would play out, not be an
interactive playable game.

I've long been aware there is an enormous amount of UI-programming work
involved with interactive playable games. My ambition for that work was
quenched from attempting it in my teenage years :-)

-- 
 \        “With Lisp or Forth, a master programmer has unlimited power |
  `\     and expressiveness. With Python, even a regular guy can reach |
_o__)                               for the stars.” —Raymond Hettinger |
Ben Finney

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web