background preloader

Making Games with Python & Pygame - Chapters

Making Games with Python & Pygame - Chapters
Chapter 1 Read online: Chapter 1 - Installing Python Chapter 2 Read online: Chapter 2 - Pygame Basics Download source: blankpygame.py Copy source to clipboard: Use the online diff tool to find typos in your code: blankpygame.py Download source: drawing.py Use the online diff tool to find typos in your code: drawing.py Download source: catanimation.py Use the online diff tool to find typos in your code: catanimation.py Chapter 3 Read online: Chapter 3 - Memory Puzzle Download source: memorypuzzle.py Use the online diff tool to find typos in your code: memorypuzzle.py Chapter 4 Read online: Chapter 4 - Slide Puzzle Download source: slidepuzzle.py Use the online diff tool to find typos in your code: slidepuzzle.py Chapter 5 Read online: Chapter 5 - Simulate Download source: simulate.py Use the online diff tool to find typos in your code: simulate.py Chapter 6 Read online: Chapter 6 - Wormy Download source: wormy.py Use the online diff tool to find typos in your code: wormy.py Chapter 7 Download source: tetromino.py

Vie privée : le problème se situe entre la chaise et le clavier « Si vous voulez garantir la confidentialité de vos données, tout ce que vous avez à faire est de vous rendre dans notre village « Opt Out », et d’arrêter de parler avec ceux qui ont décidé de ne pas y habiter. C’est très simple ! Google ne risquera plus de lire vos emails : il n’y a aucun ordinateur dans le village. Et pas plus de risque d’être surveillé par ailleurs : on n’y trouve aucune banque, et pas plus d’électricité.Intéressés ? Cliquez donc sur le bouton « Opt Out » de la page d’accueil de Google, des employés de sa division vie privée viendront vous aider à déménager, et s’occuperont de détruire toute trace de votre vie passée. » Le reportage d’ONN (Onion News Network, site d’information satirique américain) a le mérite de la clarté : il est de plus en plus difficile de ne pas être indexé dans les bases de données de Google. Google, leader mondial du ciblage comportemental Notre vie privée est une monnaie Orwell ? Le problème est inhérent à l’informatique. Edgar J. « Merde.

Invent Your Own Computer Games with Python - Chapters Chapter 1 Read online: Chapter 1 - Installing Python Videos: Chapter 2 Read online: Chapter 2 - The Interactive Shell Chapter 3 Read online: Chapter 3 - Strings Download source: hello.py Copy source to clipboard: Use the online diff tool to find typos in your code: hello.py Chapter 4 Read online: Chapter 4 - Guess the Number Download source: guess.py Use the online diff tool to find typos in your code: guess.py Chapter 5 Read online: Chapter 5 - Jokes Download source: jokes.py Use the online diff tool to find typos in your code: jokes.py Chapter 6 Read online: Chapter 6 - Dragon Realm Download source: dragon.py Use the online diff tool to find typos in your code: dragon.py Chapter 7 Read online: Chapter 7 - Using the Debugger Chapter 8 Read online: Chapter 8 - Flow Charts Chapter 9 Read online: Chapter 9 - Hangman Download source: hangman.py Use the online diff tool to find typos in your code: hangman.py Chapter 10 Read online: Chapter 10 - Tic Tac Toe Download source: tictactoe.py Chapter 11 Download source: bagels.py

7 Python Libraries you should know about In my years of programming in Python and roaming around GitHub's Explore section, I've come across a few libraries that stood out to me as being particularly enjoyable to use. This blog post is an attempt to further spread that knowledge. I decided to exclude awesome libraries like requests, SQLAlchemy, Flask, fabric etc. because I think they're already pretty "main-stream". 1. pyquery (with lxml) pip install pyquery For parsing HTML in Python, Beautiful Soup is oft recommended and it does a great job. Just how slow? What immediately stands out is how fast lxml is. So either slow and easy to use or fast and hard to use, right? Wrong! Enter PyQuery Oh PyQuery you beautiful seductress: from pyquery import PyQuery page = PyQuery(some_html) last_red_anchor = page('#container > a.red:last') Easy as pie. There are some gotchas, like for example that PyQuery, like jQuery, exposes its internals upon iteration, forcing you to re-wrap: 2. dateutil pip install python-dateutil Handling dates is a pain. 5. sh

Martine Mottet - Accueil News pyglet / pyglet pyglet: a cross-platform windowing and multimedia library for Python. home | download | documentation | contribute pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux. Some of the features of pyglet are: No external dependencies or installation requirements. Please join us on the mailing list, or download the SDK today! COMPUTERSCIENCE1.tv This is OpenCourseWare. Computer Science E-1 is a course at Harvard Extension School. E-1 isn't so much about computer science as it is about technology and how it all works. Most every student who takes this class uses computers every day but doesn't necessarily understand what's going on underneath the hood (or, in some cases, is outright scared!). All students exit this more comfortable with computers and the Internet. Even if you are not a student at Harvard, you are welcome to "take" this course via computerscience1.tv by following along via the Internet. If you're a teacher, you are welcome to adopt or adapt these materials for your own course, per the license. Special thanks to Chris Thayer and Harvard Extension School for the course's videos. Dan and David Copyright © 2011 – 2016, Dan Armendariz and David J. This course's content is licensed by Dan Armendariz and David J. you are free:

I'm doing 100+ projects in Python to learn the language. Thought someone else might want to do the same. : learnpython PyMuPDF 1.7.0 PyMuPDF is a Python binding for the PDF rendering library MuPDF Package Documentation PyMuPDF 1.7.0 Release date: June 15th, 2015 Authors Ruikai LiuJorj X. Introduction This is the new version 1.7 of PyMuPDF (formerly python-fitz), a Python binding which supports MuPDF 1.7a - “a lightweight PDF and XPS viewer”. MuPDF can access files in PDF, XPS, OpenXPS and EPUB (e-book) formats, and it is known for its top performance and high rendering quality. With PyMuPDF you therefore can also access files with extensions *.pdf, *.xps, *.oxps or *.epub from your Python scripts. Installation Normally it should be as easy as running python setup.py install once MuPDF is in place. Refer to this document for details. Usage Please have a look at the basic demos, or the examples which contain complete, working programs. You can also access the complete documentation as a PDF or as a Windows Help file. License PyMuPDF is distributed under GNU GPL v3.

Des jeux pour enseigner les éléments de base d’un environnement informatique A quoi ressemble un disque dur externe ? Et une webcam ? Qu’est ce qu’une imprimante ? Une unité centrale ? A quoi sert un clavier ? Autant de questions et bien d’autres auxquels vos élèves des classes de CP et CE1 n’ont pas toujours les réponses. Bien que l’ordinateur et tous les éléments de base d’un environnement informatique semblent déjà assez familiers pour certaines enfants, nombreux sont encore ceux parmi eux qui ne savent pas à quoi ressemble une Box Internet ou même une imprimante par exemple. C’est peut-être l’une des raisons pour lesquelles le Cybercentre de Guérande en France met à la disposition des enseignants des CP et CE1, des ressources et animations sur la découverte de l’ordinateur et du multimédia d’une part, et des jeux pour s’exercer à l’usage de certains de ces outils d’autre part. Toutes ces ressources sont disponibles en téléchargement gratuit. Niveau : Primaire

Complete Roguelike Tutorial, using python+libtcod Short introduction Welcome! Welcome to this tutorial! As you probably guessed, the goal is to have a one-stop-shop for all the info you need on how to build a good Roguelike from scratch. We hope you find it useful! Why Python? Most people familiar with this language will tell you it's fun! Why libtcod? If you haven't seen it in action yet, check out the features and some projects where it was used successfully. If you're using Windows, download either the Win32 or x64 build from bitbucket. For other platforms, you're going to have to compile them yourself. Other languages There are no known versions of this tutorial for other programming languages than Python, for libtcod 1.6.0. Here you'll find completed ports, one for Python 3 and libtcod (revising this tutorial "with good coding practices kept in mind from the beginning") and another for Python 3 and TDL, created by /u/TStand90 for r/roguelikedev Tutorial Tuesday 2017. Start the tutorial Follow the first link to get started! Extras Credits

Related: