News for hackers. Stuff that matters.
Re:Show HN: Fantasy trading card game with AI-generated char... by nerf0 on Sunday December 20, 2020 @08:54PM (#25491382)
Hi HN:

This is a fun project I've been working on recently. The idea of the cards started when I saw how an AI could generate realistic portraits of people. I tried to apply similar techniques to generating fantasy characters, and got amazing results.

The next 2 weeks were spent on designing the card assets, hero traits and descriptions. I borrowed some ideas from D&D (attribute points and alignment). Also threw in a random name generator, of which the names were scraped all over the internet.

Once I had the card assets, the rest all fell in place. It was obvious that the Ethereum blockchain was the best market place for such a collectible game. I spent the next 2 weeks writing the smart contract (based on ERC 721) and various pieces to support trading on the site. Fun fact: ETH price took off right before I was ready to deploy the contract on the mainnet. Due to high gas price, I had to spent a fortune... not fun!

I had a lot of fun working on it. Let me know if you have any questions.

Re:Show HN: Fantasy trading card game with AI-generated char... by webmaven on Monday December 21, 2020 @12:44AM (#25492426)
> This is a fun project I've been working on recently. The idea of the cards started when I saw how an AI could generate realistic portraits of people. I tried to apply similar techniques to generating fantasy characters, and got amazing results.

Can you share a bit more about the art generation? Are you using StyleGAN or some other architecture? Are you hand-selecting the art from among generated images? What training dataset did you use or create?

Re:Show HN: Fantasy trading card game with AI-generated char... by nerf0 on Monday December 21, 2020 @01:20PM (#25497686)
Sure! I'm using a network very similar to StyleGAN. After generating a batch, I review the images and weed out maybe 10% of the really bad ones. I was actually surprised at how well it worked.

For training, I spent a lot of time scraping images. I couldn't find any good dataset for this purpose. Controlling for quality is pretty tough, and I didn't spend nearly as much time as I should. And it's evident in the result. Some of the generated arts have pretty low pixel quality if you look at the original image. Luckily, it looks ok on the cards.

Re:Show HN: Fantasy trading card game with AI-generated char... by webmaven on Monday December 21, 2020 @12:59AM (#25492481)
I understand the mechanisms for claiming or buying/selling unique cards to build a collection, but what are the rules for actually playing a game with the cards you've got?
Re:Show HN: Fantasy trading card game with AI-generated char... by nerf0 on Monday December 21, 2020 @01:21PM (#25497701)
Not much right now, but see https://etheroes.io/roadmap
Re:Show HN: Fantasy trading card game with AI-generated char... by webmaven on Tuesday December 22, 2020 @01:18PM (#25509339)
I saw that page, but it doesn't mention anything about actually playing a game with these cards.

"Leveling" and "skills" are game mechanics, true, but what are the rules? You must have something in mind. Right now I have no idea even if the intent is solo play, 2-player, or more. Much less whether it's cooperative or competitive, deck building or engine-building or just tactical, and so on. How about whether there are going to be other (possibly a non-collectible core set) card types?