Giter VIP home page Giter VIP logo

moodle_bot's Introduction

moodle_BOT

介紹

能自動把將moodle上的程式作業拉下來,然後自動編譯,自動比對輸出,接著比對是否抄襲。

intro

能檢查出是編譯錯誤,測資錯誤,或是完全正確

適用對象

學校程式作業用moodle作為繳交平台,身為助教的你負責批改程式作業。

系統需求

  • python3
    • beautifulsoup4
  • JDK
  • Bash

使用方式

  1. clone

  2. 編輯get_homework.py裡面的85,87行 填入您的moodle帳號密碼(必須為助教身份)

  3. 執行python3 get_homework.py 依照提示把作業拉下來

  4. 編輯do_it.sh 20~24行中區塊

#setting main class file#############
TARGET=CalScore
INPUTPWD=../../input/hw1.txt
ANSPWD=../../output/hw1_ans.txt
#####################################

TARGET 請填入Main class名稱(進入點)

INPUTPWD 請填入測資路徑 (建議放到input資料夾中)

ANSPWD 請填入答案檔案路徑 (建議放到output資料夾中)

  1. 修改完畢後直接執行do_it.sh

附加功能

若沒有bash以及JDK環境也可以自己開一個repo設定travis-ci達成在遠端批改功能

比對抄襲

如果需要比對抄襲功能,請將moss script放入此repo的根目錄,do_it.sh執行時會自動比對

moodle_bot's People

Stargazers

 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.