GithubHelp home page GithubHelp logo

cs50-ai-python's Introduction

CS50 AI with Python submissions

These are my submissions for CS50's Introduction to Artificial Intelligence with Python course.

The CS50 course has exercises which must be completed in Python, and a number of tools for checking and submitting code to be automatically assessed.

Prerequisites

There are a number of tools required. Details below are for OS X.

Python

I'm using Anaconda Python.

You can either install Anaconda by download, or through Homebrew:

brew install --cask anaconda

You may also have to update your .zshrc paths:

echo 'export PATH=/usr/local/anaconda3/bin:$PATH' >> ~/.zshrc
echo 'export PATH=/opt/homebrew/anaconda3/bin:$PATH' >> ~/.zshrc
source ~/.zhsrc

There are various conda invocations to manage Python environments, which mean you can control the version of python and the packages available for each project that you work on...

conda env list
conda create --name py4ai
conda install python=3.9
conda activate py4ai
conda deactivate

CS50 tools

The various CS50 tools can be installed through pip. See: Installing check50

pip install check50
pip install style50
pip install submit50

style50 has a dependency on libmagic:

brew install libmagic

Invocations

Enter the project root directly. Test and submit with the appropriate slug.

Project Directory Slug
Degrees of separation degrees ai50/projects/2024/x/degrees
Tic-Tac-Toe tictactoe ai50/projects/2024/x/tictactoe
check50 <slug>
style50 <slug>
submit50 <slug>

cs50-ai-python's People

Contributors

instantiator avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.