This post is about the strange idea in the programming/computer science community to brag about have taught yourself programming at a young age. It is a long post! The tl;dr is the title 🙂 The craziness of the self taught 10 year old Before I will explain why this strange myth can be harmful and […]
Performance versus elegant code, a never ending trade off [Desiderius part #19]
Generating with constraints So, the next step, actually generating things. As I wrote last week, my strategy first was to generate entirely random hands. But! I realized that if we do that, we make some assumptions about our partner, because they will have an average hand. I then wanted to generate a random hand for […]
Code for a fitness function for bidding systems [Desiderius part #18]
Last week I wrote about my strategy for creating the fitness function data, and now, I have really written the code! So, here goes. We create a deck of cards and select 13 random ones. //make a list with (all) 52 cards let theWholeDeck = cartesian allCardSuits allRanks //get one random hand and the rest of […]
A fitness function for bidding systems [Desiderius part #17]
Last week I explained why a DSL and genetic programming are such an awesome combination. So, we can almost start to mutate our ACOL code. But, there is one thing we need: a fitness function, a function that tells us we are going the right way. When mutating a string, we used the Levenshtein distance […]
Genetic programming on a DSL [Desiderius #16]
Hi desi lovers! Service notice: Sorry I missed a post last weekend, I was prepping my F# Exchange talk. If you have not read any of my Desi posts, you can save some time and watch my talk that more or less covers posts 1/5, 8, 15 and 16 (yes, that is this one) If […]