fireplace icon indicating copy to clipboard operation
fireplace copied to clipboard

Add a pretty-printer to game state

Open liujimj opened this issue 10 years ago • 5 comments

@jleclanche My first instinct is to do this using curses (a la https://github.com/danielyule/hearthbreaker/blob/master/text_runner.py, example output here). Are you comfortable adding curses as a requirement?

liujimj avatar Oct 07 '15 15:10 liujimj

If you build a curses client then it'd have to be a full-blown client, that lets you select and play cards. It's something I've wanted to do so I'm comfortable with it yes, as long as the dependency remains contained :)

jleclanche avatar Oct 07 '15 16:10 jleclanche

You can take a look at kettle.py if you want some inspiration. Kettle is a network client. In fact, you could build a standalone client that doesn't use fireplace at all, and just depends on Kettle. But a builtin client is also probably useful...

jleclanche avatar Oct 07 '15 16:10 jleclanche

BTW you should join the #hearthsim IRC channel if you'd like to talk about all this, it's a lot simpler.

jleclanche avatar Oct 07 '15 16:10 jleclanche

Also http://urwid.org/index.html looks a lot better than using raw curses, any thoughts about that?

liujimj avatar Oct 14 '15 06:10 liujimj

I have added functionality to export the game state to xml, which should help.

jleclanche avatar Feb 08 '16 02:02 jleclanche