Go to advanced search

by antiloquax
Sat Aug 11, 2012 12:56 pm
Forum: Python
Topic: Could someone who knows about OOP look at my code?
Replies: 2
Views: 851

Could someone who knows about OOP look at my code?

I've written a little OOP program that plays "Rock Paper Scissors". It works okay, but I am not very confident as to whether I have done it in a sensible / elegant (well, I can dream ...) way. If anyone could offer some tips, I'd be very grateful. # rock.py - an example of OOP import random class Ro...
by antiloquax
Sat Aug 11, 2012 12:53 pm
Forum: Other programming languages
Topic: lisp and scheme
Replies: 14
Views: 8276

Re: lisp and scheme

At the moment, my favourite implementation is mit-scheme. I have tried to install this on my Pi, using the native C source files. However, when I try to build it, I get an error message to do with a file called confshared.h. If anyone has managed to do this and/or can help me out, I'd be very gratef...
by antiloquax
Sat Aug 11, 2012 5:09 am
Forum: Python
Topic: Python without a mouse
Replies: 6
Views: 1508

Re: Python without a mouse

I've collected a few links to tutorials that are useful here:
raspberrypy.co

Also there are a few Python Tutorial videos on my YouTube channel:
Python Tutorial Playlist
by antiloquax
Sat Aug 11, 2012 5:01 am
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 41658

Re: Is Scratch really viable on Raspberry Pi?

Very interesting comments. I'll try running without displaying the scores.
I hope something can be done to improve Scratch on the Pi!
mark
by antiloquax
Fri Aug 10, 2012 7:13 am
Forum: Other programming languages
Topic: lisp and scheme
Replies: 14
Views: 8276

Re: lisp and scheme

Thanks for those replies. I still haven't gone any further than using Guile on the Pi. I tried to build MIT Scheme from the "Portable C" source code, but got errors and so gave up! If anyone out there is interested in learning Scheme, there is an excellent series of lectures by Harold Abelson and Ge...
by antiloquax
Fri Aug 10, 2012 7:05 am
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 41658

Re: Is Scratch really viable on Raspberry Pi?

Hi Clifford, Sorry I haven't replied - I forgot to "watch" this topic. I took the liberty of having a play with your code. I changed a couple of things (mainly just reducing the "wait" times and making some of the sprites take a bit more "responsibility" for what happens). I am not a very experience...
by antiloquax
Thu Aug 09, 2012 9:25 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Latest video is numbered "0". Simple one on for loops, while loops, if and else - plus a recursive factorial program.
Here.
by antiloquax
Wed Aug 08, 2012 5:37 pm
Forum: Python
Topic: Magpi 4 Fish Game
Replies: 14
Views: 2659

Re: Magpi 4 Fish Game

:D
Cool!
Have you had a look at any of my YouTube videos? There are nine now.
Here'sthe latest.
by antiloquax
Wed Aug 08, 2012 9:40 am
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Thanks kobzar! :D
Video 8 now available:
Bat and Ballgame
by antiloquax
Tue Aug 07, 2012 4:30 pm
Forum: Python
Topic: Magpi 4 Fish Game
Replies: 14
Views: 2659

Re: Magpi 4 Fish Game

Hey anakin,

From the code you posted, I think it's an indentation problem. Everything from where you check if Tux has gone off screen outside the while loop!

The indentation of the last 2 lines looks okay though.

mark
by antiloquax
Tue Aug 07, 2012 8:26 am
Forum: Python
Topic: Magpi 4 Fish Game
Replies: 14
Views: 2659

Re: Magpi 4 Fish Game

I am going to share the code of an earlier "draft" of the fish game. This one doesn't have the "searchlight" - Jaseman wrote that part. However, it is very similar (just dodge the black bars!) Here it is as a .zip (with images and sounds). And here's a tar.gz archive. Gameplay should look like this:...
by antiloquax
Mon Aug 06, 2012 4:10 pm
Forum: Python
Topic: Magpi 4 Fish Game
Replies: 14
Views: 2659

Re: Magpi 4 Fish Game

Sorry to hear you are having problems with this. You could have a look at this blog post in which I go through an earlier (simpler) version of the Bat and Ball thing. 100Mudcats If you are having problems with the fish game also, I will post up a link to an earlier version that may be easier to foll...
by antiloquax
Mon Aug 06, 2012 4:04 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Video Six- a GUI program based on Magic 8 ball.
by antiloquax
Sat Aug 04, 2012 4:56 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Thanks, I hope they are of some use!
:D
2 and 3 were my first efforts and are a little bit random :oops: , but 4 follows up some of the stuff in 1.

The fifth is now live: Simple Text Hangman in Python.
mark
by antiloquax
Sat Aug 04, 2012 2:47 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Thanks Mr Dave. The link for the fifth one doesn't work. I`'ll have to re-upload it.
by antiloquax
Sat Aug 04, 2012 1:54 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Re: Some tutorial videos ...

Here's the next video.
It goes through how to write a simple (text-only) hangman game.
Five
mark
by antiloquax
Fri Aug 03, 2012 4:17 pm
Forum: Python
Topic: Some tutorial videos ...
Replies: 11
Views: 1786

Some tutorial videos ...

Hi, I've recently tried doing some video tutorials.
One
Two
Three
Four

They are aimed at beginners (although 3 introduces some GUI stuff).
mark
by antiloquax
Fri Aug 03, 2012 10:52 am
Forum: Python
Topic: Anyone looking to learn Python
Replies: 1
Views: 930

Re: Anyone looking to learn Python

Thanks for the link :-)
by antiloquax
Thu Aug 02, 2012 8:08 pm
Forum: Python
Topic: What IDE to use in Windows ?
Replies: 8
Views: 5343

Re: What IDE to use in Windows ?

Geany is popular and there's a Windows version. Just Google geany.
by antiloquax
Thu Aug 02, 2012 1:45 pm
Forum: Other programming languages
Topic: lisp and scheme
Replies: 14
Views: 8276

Re: lisp and scheme

Also interested in Dr Racket - a nice IDE for Scheme. I haven't tried to build it on my Pi yet. May have a go this afternoon.
mark
by antiloquax
Thu Aug 02, 2012 1:43 pm
Forum: Other programming languages
Topic: Clozure CL
Replies: 1
Views: 1523

Re: Clozure CL

It's good to know that :)
I am just starting to learn a bit of Scheme. I tend to use Guile and MIT-Scheme at the mo, but I will try clozure out at some point!
thanks,
mark
by antiloquax
Wed Aug 01, 2012 12:53 pm
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 54983

Re: The MagPi Magazine www.themagpi.com

Just downloaded the latest issue. Well done! Just in case anyone is having problems downloading, I've put a copy on my Ubuntu One space: MagPi Issue 4 Also here's another mirror on my dropbox: MagPi Issue 4 mark ps @Jaseman and co. I can't seem to get on IRC at the moment. Something about my IP. Gla...
by antiloquax
Wed Aug 01, 2012 12:37 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2938

Re: Could someone run through this code with me?

Thanks khh. No problem. Like I said, your advice was very sound.
I am still very much a beginner, learning as I go!
mark
:)

Go to advanced search