codenames icon indicating copy to clipboard operation
codenames copied to clipboard

Codenames Pictures

Open zvikabh opened this issue 5 years ago • 14 comments

Support for Codenames Pictures (perhaps as a separate language?) would be totally awesome. Are there any thoughts along these lines? I'm willing to contribute a bunch of Codenames Pictures-like drawings of mine. I can also have a go at coding, but I'm not very experienced with Go, so any pointers on how to go about this would be awesome.

zvikabh avatar Apr 15 '20 10:04 zvikabh

I think it might be tricky to support without pretty extensive changes, but I agree it would be cool! I'll think on it...

jbowens avatar Apr 17 '20 00:04 jbowens

Here's a quick fork for Codenames Pictures. I had to change some CSS to get the cards to be a bigger, so that the images are clearer. So in this fork there is no support for the ordinary Codenames. It should be possible to have the two working side by side, though. WDYT?

zvikabh avatar Apr 17 '20 04:04 zvikabh

@zvikabh I'm interested in your pictures integration. Under what license do you distribute those images?

nochkin avatar Apr 21 '20 04:04 nochkin

That fork is just an example for illustrative purposes, I don't own the copyright for those images.

zvikabh avatar Apr 21 '20 14:04 zvikabh

@zvikabh I think in order to use your fork one way or another we have to have some pictures which can be used under an appropriate license. Just a friendly suggestion to find out if you can actually distribute them publiclly even on your Github before you get into troubles. You never know, it's not 1990s :-)

nochkin avatar Apr 21 '20 14:04 nochkin

I just wanted to illustrate that this is easy to do technically. I suppose you're right and to be safe, I removed the images.

zvikabh avatar Apr 21 '20 19:04 zvikabh

OK, I set up a new version in which I carefully verified that all images are public domain. You can also try it out here: http://ec2-18-188-243-7.us-east-2.compute.amazonaws.com/

zvikabh avatar Apr 24 '20 12:04 zvikabh

@zvikabh Nice, I'm glad you found some public domain images for that. I have my own fork where I started doing the same thing, but I could not find public domain images. Can I use yours? What source did you use?

nochkin avatar Apr 24 '20 13:04 nochkin

Most are from freesvg.org, and a few from Wikipedia, some with a couple of minor tweaks of my own. You are welcome to use them. You could also use PNGs which are much easier to find with a free license, but it doesn't look as nice.

zvikabh avatar Apr 24 '20 14:04 zvikabh

I liked your idea to use SVG instead of PNG. Thanks for sharing. During my research I even was able to find a repo here on Github of someone who just made a some pretty low quality pictures using a phone of the original stuff and hosting here :-)

nochkin avatar Apr 24 '20 14:04 nochkin

Cool, LMK if you get some nice results with your fork.

zvikabh avatar Apr 24 '20 14:04 zvikabh

Hey fam, I have a functioning and hosted version of Codenames Pictures here: https://github.com/banool/codenames-pictures. This has been alive for maybe 1.5 years now. It's a fork of this repo and like you all predicted, I had to make pretty heavy, backwards-incompatible changes to the code. As such, I've fallen way behind master because it isn't feasible to pull the new code in without essentially rewriting it all (though I'd be interested to try some time).

It'd be interesting to see how the original project could be refactored to support pictures natively, perhaps with some easily overwritable component for each of the cells in the game board. I had to make backend changes to support serving up URLs instead of words also of course.

To get around attribution issues, my friends and I drew our own cards 🤠. There is also support for using custom images supplied by the user. For example, try putting http://csclub.uwaterloo.ca/~ke2mcbri/codenames/dcom_cropped.txt into the custom images box here: https://codenames-pictures.dport.me.

banool avatar May 17 '20 16:05 banool

@banool, I have a few ideas on how to make it backward-compatible, but did not have enough time to complete it. Too busy with other projects. I liked your hand-drawings. That's a good idea. Some looks really funny.

nochkin avatar May 17 '20 17:05 nochkin

Guys we should absolutely make CodeMEMES

enurseitov avatar Jun 12 '20 17:06 enurseitov